[Issue 3168] New: Declaring structs as incomplete types no longer works

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 12 08:48:17 PDT 2009


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

           Summary: Declaring structs as incomplete types no longer works
           Product: D
           Version: 1.046
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: nfxjfg at gmail.com


In dmd 1.045, you used to be able to declare structs like this:

>>
struct FT_RasterRec;
<<

This no longer works with dmd 1.046.
The error message is:
test.d(1): Error: struct jk.FT_RasterRec has forward references

Declaring structs like this is often done in C to define incomplete types, and
is especially useful when porting C headers. Also, the new behavior in dmd
1.046 breaks old 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