http://d.puremagic.com/issues/show_bug.cgi?id=9879

           Summary: Built-in sizeof should return ErrorExp if error occurs
                    in aggregate type semantics
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Kenji Hara <[email protected]> 2013-04-04 21:12:54 PDT ---
>From bug 4269:

With this code, `__traits` should return `false`, but doesn't.

static if (__traits(compiles,A.sizeof)) pragma(msg, "A.sizeof compiles!");
class A { void foo(B b); }

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to