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

Mathias LANG <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Mathias LANG <[email protected]> ---
Just hit this bug, but straight in Druntime.

Test case:
```
version (NonExistent)
{
    alias FILE = void*;
}
else
    static assert("Unsupported platform");

FILE getSomething();
```

This will output "test.d(8): Error: undefined identifier FILE" with a recent
compiler.
This is a common pattern for platform support. I'm not sure we could guarantee
the order of evaluation here, but if we don't, we need to go through our libs
and provide dummy declarations.

--

Reply via email to