[Issue 7482] New: deprecation isn't checked inside forward referenced is(typeof())
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 10 22:12:37 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7482
Summary: deprecation isn't checked inside forward referenced
is(typeof())
Product: D
Version: D1 & D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 2012-02-10 22:12:36 PST ---
static if (is(typeof(Z))) {} else {static assert(0, "first time");}
deprecated int Z;
static if (is(typeof(Z))) {} else {static assert(0, "second time lucky");}
----------
crash.d(5): Error: static assert "second time lucky"
It should assert the first time.
This is another gagging bug, related to bug 4269, but the problem isn't an
invalid type. Here, the first typeof doesn't check deprecation.
--
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