Thread overview
[Issue 1122] New: dmd generate bad line number while reporting error message
Apr 11, 2007
d-bugmail
Apr 12, 2007
d-bugmail
Apr 27, 2007
d-bugmail
April 11, 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@digitalmars.com
        ReportedBy: davidl@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


-- 

April 12, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1122


bugzilla@digitalmars.com changed:

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




------- Comment #1 from bugzilla@digitalmars.com  2007-04-11 22:03 -------
Fixed dmd 1.011


-- 

April 27, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1122


thomas-dloop@kuehne.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         OS/Version|Windows                     |All




------- Comment #2 from thomas-dloop@kuehne.cn  2007-04-27 12:39 -------
Added to DStress as http://dstress.kuehne.cn/nocompile/e/ExpressionStatement_11_A.d


--