Summary: deprecation isn't checked inside forward referenced
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Don <> 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:
------- You are receiving this mail because: -------

Reply via email to