[Issue 1601] New: shr and shl error message is missing line numbers
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Oct 20 01:02:01 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1601
Summary: shr and shl error message is missing line numbers
Product: D
Version: 1.022
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: diagnostic
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: braddr at puremagic.com
Continued from bug 550, the error for out of range shifting is present now, but
lacks line numbers for Shl and Shr, but ShrAssign and ShlAssign are in good
shape. The test code:
void main()
{
int i = 0;
i >>= 33;
i <<= 33;
i = i >> 33;
i = i << 33;
}
the results:
/home/braddr/sandbox/d/bugs/550/bug550.d(5): Error: shift assign by 33 is
outside the range 0..32
/home/braddr/sandbox/d/bugs/550/bug550.d(6): Error: shift assign by 33 is
outside the range 0..32
Error: shift by 33 is outside the range 0..32
--
More information about the Digitalmars-d-bugs
mailing list