[Issue 1122] New: dmd generate bad line number while reporting error message

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 10 18:51:34 PDT 2007


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

           Summary: dmd generate bad line number while reporting error
                    message
           Product: D
           Version: 1.010
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: davidl at 126.com


char[] getkey(char[]key1,char[]key2)
{
        char[] v;
        *(cast(int*)&v[(4+key1.length)..(8+key1.length)]=key2.length; //) is
missed
        return v;
}
void main()
{
   getkey("asdf","df");
}

In my opinion expected ) not ; message should be generated when parsing
*(cast(int*)&v[(4+key1.length)..(8+key1.length)]=key2.length;
not give me an unexist line number


-- 



More information about the Digitalmars-d-bugs mailing list