http://d.puremagic.com/issues/show_bug.cgi?id=4283
Summary: static if with dangling else clause Product: D Version: future Platform: x86 OS/Version: Windows Status: NEW Keywords: accepts-invalid Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@eml.cc 2010-06-06 06:34:41 PDT --- This D2 program compiles and runs with v2.046, but the syntax is wrong: template Foo(bool b) { static if (b) enum bool Foo = 1; else } static assert(Foo!(true) == 1); void main() {} -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------