ImportC octal literals: difference between GCC and dmd

Steven Schveighoffer schveiguy at gmail.com
Sun Nov 28 22:03:10 UTC 2021


On 11/27/21 8:23 PM, bachmeier wrote:

> 
> Now I'm confused, because AFAICT, that's the only place the compiler 
> will give you that error. Yet you get that error message in D code:
> 
> https://run.dlang.io/is/f2F2YD

run.dlang.io is on 2.097.0, which does not have ImportC (always useful 
to use --version on run.dlang.io to see what version is running).

The code that prints the same error for 2.097.0 is here: 
https://github.com/dlang/dmd/blob/c436df7580be08481386e13da41c08e91f46b07f/src/dmd/lexer.d#L1990

-Steve


More information about the Digitalmars-d mailing list