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.

Reply via email to