[Issue 4283] static if with dangling else clause
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Aug 12 23:51:10 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4283
--- Comment #2 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 2012-08-12 23:51:08 PDT ---
The problem is if parseBlock encounters a rcurly, it consumes nothing.
Otherwise, it will consume
{ decldefs }
: decldefs
decldefs
;
As near as I can tell, consuming nothing serves no purpose in the parser, but
it does allow the following:
class C{
public
}
struct S{
static auto
}
interface F{
extern(C)
}
union Z{
extern private
}
class C2{
align
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list