[Issue 8485] New: referencing a deprecated symbol should never compile
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jul 31 05:33:47 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8485
Summary: referencing a deprecated symbol should never compile
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at gmx.ch 2012-07-31 05:33:45 PDT ---
DMD 2.059 accepts the following code:
deprecated int x;
void main(){ static assert(!is(typeof(x))); }
It should be rejected, or symbol deprecation and the -d switch can change the
meaning of valid code.
--
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