[Issue 754] New: hex strings crash DMD when reporting syntax errors

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 27 09:18:37 PST 2006


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

           Summary: hex strings crash DMD when reporting syntax errors
           Product: D
           Version: 0.178
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: luismarques at gmail.com


The following invalid source crashes DMD 0.178

void main()
{
    x"EF BB BF";
}

But the following does not:

1) valid source compiles with success:
void main()
{
    char[] x = x"EF BB BF";
}

2) variant of invalid gives error with success:
void main()
{
    x"00 BB BF";
}

You may have different results, as it seems to be a stray pointer problem.


-- 



More information about the Digitalmars-d-bugs mailing list