[Issue 4992] New: ICE(glue.c) or segfault: using int[new]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 4 13:02:35 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4992
Summary: ICE(glue.c) or segfault: using int[new]
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: ice-on-invalid-code, patch
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 2010-10-04 13:02:13 PDT ---
TEST CASE:
// ICE(glue.c)
int[new] crash4992;
// Segfault
int crash4992b[new];
PATCH: Support for T[new] needs to be removed from the parser.
mtype.c, Remove lines 2414 - 2419 from parseBasicType2().
and also from
isDeclarator()
parseDeclarator()
They are easily found by searching for TOKnew.
Each section begins with something like:
- else if (token.value == TOKnew && peekNext() == TOKrbracket)
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list