digitalmars.D.bugs - [Issue 4992] New: ICE(glue.c) or segfault: using int[new]
- d-bugmail puremagic.com (30/30) Oct 04 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4992
- d-bugmail puremagic.com (12/12) Oct 05 2010 http://d.puremagic.com/issues/show_bug.cgi?id=4992
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 puremagic.com
ReportedBy: clugdbug yahoo.com.au
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: -------
Oct 04 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4992
Walter Bright <bugzilla digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |bugzilla digitalmars.com
Resolution| |FIXED
02:34:15 PDT ---
http://www.dsource.org/projects/dmd/changeset/704
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 05 2010








d-bugmail puremagic.com