[Issue 6534] New: const struct definition inside functions too

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 19 23:22:24 PDT 2011


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

           Summary: const struct definition inside functions too
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2011-08-19 23:22:23 PDT ---
void foo() {
    const struct Bar {}
}
void main() {}


DMD 2.055beta:

test.d(2): basic type expected, not struct
test.d(2): no identifier for declarator int
test.d(2): semicolon expected, not 'struct'

-- 
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