[Issue 2808] 'nothrow' nested functions cannot be parsed
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 6 12:06:06 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2808
clugdbug at yahoo.com.au changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
------- Comment #1 from clugdbug at yahoo.com.au 2009-04-06 14:06 -------
I can make this work by changing parse.c line 3200. It surprises me that this
is in Parser::parseStatement; but since it's in the label "Ldeclaration", I
believe it is correct. It means that code like "nothrow int x=7;" is accepted,
but that's accepted at global scope already. So I don't think there's anything
wrong with this patch.
#if DMDV2
case TOKimmutable:
case TOKshared:
case TOKnothrow: // add this line
#endif
// case TOKtypeof:
Ldeclaration:
--
More information about the Digitalmars-d-bugs
mailing list