[Bug 128] DMD crash with static if and anonymous classes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 18 11:37:54 PDT 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=128
------- Comment #2 from h3r3tic at mat.uni.torun.pl 2006-05-18 13:37 -------
(In reply to comment #1)
> Compiler crashing is always a bug.
Sure.. but my question wasn't about the crash. I asked "Is that a compiler or
documentation bug ?" about the documentation/compiler mismatch. At the time of
my original posting the doc said that a definition of an anonymous class
contains BaseClassList_opt, which is defined to include the ':' token. In other
words, the doc said DMD accepts:
new class Foo : Bar{}
while it wants:
new class Foo Bar {}
The documentation has been changed now, but it sill contains a minor bug:
new ()ArgumentListopt class ()ArgumentListopt SuperClassopt InterfaceClassesopt
ClassBody
IMHO should be:
new (ArgumentListopt) class (ArgumentListopt) SuperClassopt InterfaceClassesopt
ClassBody
/Tom
--
More information about the Digitalmars-d-bugs
mailing list