[Issue 3450] New: is (typeof({ ... }())) unexpected return
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 29 08:19:38 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3450
Summary: is (typeof({ ... }())) unexpected return
Product: D
Version: 2.035
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: critical
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: kamaboco at gmail.com
--- Comment #0 from kamaboco at gmail.com 2009-10-29 08:19:37 PDT ---
struct Foo
{
enum bool BAR = is (typeof({}()));
// Error: static assert (0 == 1) is false
static assert (BAR == is (typeof({}())));
}
--
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