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

           Summary: Wrong error message "no size yet for forward
                    reference" for opaque struct
           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-09-29 20:01:26 PDT ---
>From fail_compilation/fail91.d

struct S;

void main()
{
    S* s = new S();
}

Prints:
fail_compilation/fail91.d(13): Error: struct fail91.S unknown size
fail_compilation/fail91.d(13): Error: struct fail91.S no size yet for forward
reference

However, "no size yet for forward reference" is a wrong message, because opaque
struct size never be calculated during compilation.

So, the code should print:
fail_compilation/fail91.d(13): Error: struct fail91.S unknown size

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

Reply via email to