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

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:
------- You are receiving this mail because: -------

Reply via email to