public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18369] New: [4.0 regression] Segfault on braced new
@ 2004-11-08  6:50 mueller at kde dot org
  2004-11-08  6:51 ` [Bug c++/18369] " mueller at kde dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: mueller at kde dot org @ 2004-11-08  6:50 UTC (permalink / raw)
  To: gcc-bugs

=== Cut === 
void breakme() 
{ 
  int* v =new (int [5]); 
} 
=== Cut === 
GNU C++ version 4.0.0 20041107 (experimental) (i686-pc-linux-gnu) 
        compiled by GNU C version 4.0.0 20041107 (experimental). 
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 
test.cpp: In function ‘void breakme()’: 
test.cpp:4: internal compiler error: Segmentation fault 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 
           Summary: [4.0 regression] Segfault on braced new
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mueller at kde dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18369


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/18369] [4.0 regression] Segfault on braced new
  2004-11-08  6:50 [Bug c++/18369] New: [4.0 regression] Segfault on braced new mueller at kde dot org
@ 2004-11-08  6:51 ` mueller at kde dot org
  2004-11-08 10:44 ` reichelt at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mueller at kde dot org @ 2004-11-08  6:51 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
           Keywords|                            |ice-on-valid-code


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18369


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/18369] [4.0 regression] Segfault on braced new
  2004-11-08  6:50 [Bug c++/18369] New: [4.0 regression] Segfault on braced new mueller at kde dot org
  2004-11-08  6:51 ` [Bug c++/18369] " mueller at kde dot org
@ 2004-11-08 10:44 ` reichelt at gcc dot gnu dot org
  2004-11-08 12:33 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-11-08 10:44 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |monitored
   Last reconfirmed|0000-00-00 00:00:00         |2004-11-08 10:44:03
               date|                            |
   Target Milestone|---                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18369


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/18369] [4.0 regression] Segfault on braced new
  2004-11-08  6:50 [Bug c++/18369] New: [4.0 regression] Segfault on braced new mueller at kde dot org
  2004-11-08  6:51 ` [Bug c++/18369] " mueller at kde dot org
  2004-11-08 10:44 ` reichelt at gcc dot gnu dot org
@ 2004-11-08 12:33 ` pinskia at gcc dot gnu dot org
  2004-11-08 13:46 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-08 12:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-08 12:33 -------
: Search converges between 2004-06-22-trunk (#470) and 2004-06-24-trunk (#471).

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18369


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/18369] [4.0 regression] Segfault on braced new
  2004-11-08  6:50 [Bug c++/18369] New: [4.0 regression] Segfault on braced new mueller at kde dot org
                   ` (2 preceding siblings ...)
  2004-11-08 12:33 ` pinskia at gcc dot gnu dot org
@ 2004-11-08 13:46 ` pinskia at gcc dot gnu dot org
  2004-11-09  6:58 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-08 13:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-08 13:46 -------
Almost certained it is caused by:
2004-06-21  Mark Mitchell  <mark@codesourcery.com>

        * cp-tree.def (NEW_EXPR): Add a fourth slot.
        * cp-tree.h (PARMLIST_ELLIPSIS_P): Remove.
        (TREE_PARMLIST): Likewise.
        (CALL_DECLARATOR_PARMS): Likewise.
        (CALL_DECLARATOR_QUALS): Likewise.
        (CALL_DECLARATOR_EXCEPTION_SPEC): Likewise.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org, mark at codesourcery
                   |                            |dot com
      Known to fail|                            |4.0.0
      Known to work|                            |3.4.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18369


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/18369] [4.0 regression] Segfault on braced new
  2004-11-08  6:50 [Bug c++/18369] New: [4.0 regression] Segfault on braced new mueller at kde dot org
                   ` (3 preceding siblings ...)
  2004-11-08 13:46 ` pinskia at gcc dot gnu dot org
@ 2004-11-09  6:58 ` mmitchel at gcc dot gnu dot org
  2004-11-10 17:01 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-11-09  6:58 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |mark at codesourcery dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18369


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/18369] [4.0 regression] Segfault on braced new
  2004-11-08  6:50 [Bug c++/18369] New: [4.0 regression] Segfault on braced new mueller at kde dot org
                   ` (4 preceding siblings ...)
  2004-11-09  6:58 ` mmitchel at gcc dot gnu dot org
@ 2004-11-10 17:01 ` cvs-commit at gcc dot gnu dot org
  2004-11-10 17:20 ` mmitchel at gcc dot gnu dot org
  2005-01-06  0:20 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-10 17:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-11-10 17:01 -------
Subject: Bug 18369

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2004-11-10 17:01:00

Modified files:
	gcc/cp         : ChangeLog init.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/init: new12.C 

Log message:
	PR c++/18369
	* init.c (build_new_1): Handle parenthesized type-ids that name an
	array type.  Tidy.
	
	PR c++/18369
	* g++.dg/init/new12.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4476&r2=1.4477
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/init.c.diff?cvsroot=gcc&r1=1.400&r2=1.401
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4569&r2=1.4570
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/new12.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18369


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/18369] [4.0 regression] Segfault on braced new
  2004-11-08  6:50 [Bug c++/18369] New: [4.0 regression] Segfault on braced new mueller at kde dot org
                   ` (5 preceding siblings ...)
  2004-11-10 17:01 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-10 17:20 ` mmitchel at gcc dot gnu dot org
  2005-01-06  0:20 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-11-10 17:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-11-10 17:20 -------
Fixed in GCC 4.0.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18369


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug c++/18369] [4.0 regression] Segfault on braced new
  2004-11-08  6:50 [Bug c++/18369] New: [4.0 regression] Segfault on braced new mueller at kde dot org
                   ` (6 preceding siblings ...)
  2004-11-10 17:20 ` mmitchel at gcc dot gnu dot org
@ 2005-01-06  0:20 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-01-06  0:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-01-06 00:20 -------
Subject: Bug 18369

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	apple-ppc-branch
Changes by:	austern@gcc.gnu.org	2005-01-06 00:20:31

Modified files:
	gcc/cp         : ChangeLog.apple-ppc init.c 
	gcc/testsuite  : ChangeLog.apple-ppc 
Added files:
	gcc/testsuite/g++.dg/init: new12.C 

Log message:
	radar 3934803
	PR c++/18369
	* init.c (build_new_1): Handle parenthesized type-ids that name an
	array type.  Tidy.
	* g++.dg/init/new12.C: New test.
	
	- Customer impact (why this needs to be fixed): This bug causes the compiler to crash whenever it encounters a certain construct that's moderately obscure but only moderately.  I expect many large C++ projects to use this construct in at least one place.  Among the projects that use this is QuickTimeStreaming, so this radar causes a side world build failure.
	- Code reviewed by (name): Mark Mitchell for fsf mainline (11/9/04), Geoff Keating for apple-ppc-branch (1/5/05)
	- Code review date: see above
	- Root build number the fix was tested in: n/a
	- Root build date:n/a
	- What did you do to test the fix: bootstrapped the compiler, ran dg, verified that the new test case that's part of the patch (new12.C) passes, verified that the test case in this radar passes, verified that this patch caused no dg regressions
	- Is there a test case for this fix?  If not, why: yes, see above
	- Other components affected by this fix (i.e., identify integration points): none
	- Other groups affected by the fix (i.e., QA, Pubs, other eng groups): QA will have to test it
	- Is there Localization impact? no
	- Risk assessment: Low.  This patch has been in fsf mainline for the last two months, and nobody has seen a problem with it.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.apple-ppc.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.1.2.22&r2=1.1.2.23
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/init.c.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.281.2.40.2.11&r2=1.281.2.40.2.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.apple-ppc.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.1.2.72&r2=1.1.2.73
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/init/new12.C.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=NONE&r2=1.1.14.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18369


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-01-06  0:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-08  6:50 [Bug c++/18369] New: [4.0 regression] Segfault on braced new mueller at kde dot org
2004-11-08  6:51 ` [Bug c++/18369] " mueller at kde dot org
2004-11-08 10:44 ` reichelt at gcc dot gnu dot org
2004-11-08 12:33 ` pinskia at gcc dot gnu dot org
2004-11-08 13:46 ` pinskia at gcc dot gnu dot org
2004-11-09  6:58 ` mmitchel at gcc dot gnu dot org
2004-11-10 17:01 ` cvs-commit at gcc dot gnu dot org
2004-11-10 17:20 ` mmitchel at gcc dot gnu dot org
2005-01-06  0:20 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).