What's up with GDC?

Johan Engelen via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jun 12 02:05:06 PDT 2016


On Sunday, 12 June 2016 at 04:19:33 UTC, Joerg Joergonson wrote:
>
> So ldc parses things differently than dmd... I imagine this is 
> a bug!

That, or you are comparing different D language versions.

The D language is evolving: different DMD compiler versions may 
treat the same code differently.
>  ldc2 --version
LDC - the LLVM D compiler (683d9e):
   based on DMD v2.071.1 and LLVM 3.5.2svn-r255994
                              ^^^^^^^
So this LDC version is compatible with the D-language spec of DMD 
2.071.
When comparing compilers on code they accept/decline, you have to 
compare the same language spec.


More information about the Digitalmars-d-learn mailing list