[Issue 9879] New: Built-in sizeof should return ErrorExp if error occurs in aggregate type semantics

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 4 21:12:55 PDT 2013


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: nobody at puremagic.com
        ReportedBy: k.hara.pg at gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 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: -------


More information about the Digitalmars-d-bugs mailing list