www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Is this a bug, if so, how would you summarize it?

reply "safety0ff" <safety0ff.dev gmail.com> writes:
See this code: http://dpaste.dzfl.pl/b3ae1667

On DMD it gives the error message if version=bug, but not if 
version=bug AND version=workaround1 (through 6).
On LDC it segfaults at run time if version=bug, but not if 
version=bug AND version=workaround1 (through 6).

Workaround1 - workaround4 are more or less boring.
However it is surprising that workaround5 and workaround6 work 
but in the bug (when there's two aliases) you then get an error 
message for each alias.
Oct 14 2013
parent "monarch_dodra" <monarchdodra gmail.com> writes:
On Tuesday, 15 October 2013 at 06:40:13 UTC, safety0ff wrote:
 See this code: http://dpaste.dzfl.pl/b3ae1667

 On DMD it gives the error message if version=bug, but not if 
 version=bug AND version=workaround1 (through 6).
 On LDC it segfaults at run time if version=bug, but not if 
 version=bug AND version=workaround1 (through 6).

 Workaround1 - workaround4 are more or less boring.
 However it is surprising that workaround5 and workaround6 work 
 but in the bug (when there's two aliases) you then get an error 
 message for each alias.
I didn't look too much into this, because it's not failing for me on the latest head, so whatever it is, it's fixed already. http://ftp.digitalmars.com/dmd2beta.zip
Oct 15 2013