Thread overview
[Issue 1473] New: regression: forward references in const struct/union initializers upset dmd
Sep 05, 2007
d-bugmail
Sep 06, 2007
d-bugmail
Jun 28, 2008
d-bugmail
September 05, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1473

           Summary: regression: forward references in const struct/union
                    initializers upset dmd
           Product: D
           Version: 1.021
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: h3r3tic@mat.uni.torun.pl


const Foo foo = { bar: 0 };

struct Foo {
        long bar;
}
// ----

Error: 'bar' is not a member of 'Foo'

There's no line number reported, works fine in dmd 1.020. Works when you put the const after Foo's definition.

hmm... First! :D  // bug reported for 1.021 :P


-- 

September 06, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1473


smjg@iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg@iname.com
OtherBugsDependingO|                            |340
              nThis|                            |
           Severity|normal                      |regression




-- 

June 28, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1473


h3r3tic@mat.uni.torun.pl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Comment #1 from h3r3tic@mat.uni.torun.pl  2008-06-28 06:31 -------
Seems to work with recent DMD versions :)


--