https://issues.dlang.org/show_bug.cgi?id=23699

--- Comment #3 from Iain Buclaw <ibuc...@gdcproject.org> ---
The term used by C++ is "elaborated type specifier", which is used to
distinguish between types and regular identifiers.

For example, the following code is accepted by both C++ and ImportC
```
struct s { int a; };

void g(int s) {
  struct s* p = (struct s*)malloc(sizeof(struct s));
  p->a = s;
}
```

Whereas this is rejected by both C++ and ImportC, for the same reason.
```
struct s { int a; };

void g(int s) {
  s* p = (s*)malloc(sizeof(s));
  p->a = s;
}
```

--

Reply via email to