[Issue 1738] New: Error on struct with on line number

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 17 10:25:17 PST 2007


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

           Summary: Error on struct with on line number
           Product: D
           Version: 1.024
          Platform: PC
               URL: http://www.digitalmars.com/webnews/newsgroups.php?art_gr
                    oup=digitalmars.D&article_id=63859
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: technocrat7 at gmail.com


I narrowed down the error without a line number that Dan saw in Walnut. I don't
know that DMD is reject code that is invalid in Dan's case, but obviously the
code in my reduced example is invalid code. The error message should be
improved to show where the error occurs.

Example:
<code>
struct MyStruct {
}

static const MyStruct
        FALSE = { b:false };
</code>

Error Message:

Error: 'b' is not a member of 'MyStruct'
(no line number provided by DMD)


-- 



More information about the Digitalmars-d-bugs mailing list