See PR, which introduced the ICE.
https://github.com/dlang/dmd/pull/15100
```
template Template(T...)
{
extern(C++) const __gshared int Template = 0;
}
auto x = Template!(null);
```
Comment #1 by razvan.nitu1305 — 2023-05-03T08:04:27Z
As pointed out in the PR, this is not a regression. Before the PR it used to hit an assert. The error that was used may not be ideal but it follows the pattern of what is already there.
Comment #2 by razvan.nitu1305 — 2023-05-03T08:09:20Z
This should be closed, but until you answer I will downgrade the severity to `normal`.
Comment #3 by robert.schadek — 2024-12-13T19:28:28Z