www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4992] New: ICE(glue.c) or segfault: using int[new]

reply d-bugmail puremagic.com writes:
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


--- Comment #0 from Don <clugdbug 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: -------
Oct 04 2010
parent d-bugmail puremagic.com writes:
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


--- Comment #1 from Walter Bright <bugzilla digitalmars.com> 2010-10-05
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