public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16205] New: 3.5: ICE with -Wall on no-throw specifier
@ 2004-06-25 19:35 gcc-bugzilla at gcc dot gnu dot org
  2004-06-25 19:46 ` [Bug c++/16205] [3.5 Regression]: " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2004-06-25 19:35 UTC (permalink / raw)
  To: gcc-bugs



g++ segfaults on the example below if -Wall is used:

$ ./cc1plus -quiet -Wall x.cc
x.cc: In function `void t_test1(C*)':
x.cc:8: 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.
$

Here's where it's crashing:

Program received signal SIGSEGV, Segmentation fault.
0x0815480b in warn_for_collisions_1 (written=0x400f5cb0, writer=0x40008240,
    list=0x86927b0, only_writes=0) at /home/sss/gcc/gcc/gcc/c-common.c:1344
1344                       IDENTIFIER_POINTER (DECL_NAME (list->expr)));


(gdb) where
#0  0x0815480b in warn_for_collisions_1 (written=0x400f5cb0,
    writer=0x40008240, list=0x86927b0, only_writes=0)
    at /home/sss/gcc/gcc/gcc/c-common.c:1344
#1  0x081548b0 in warn_for_collisions (list=0x8692918)
    at /home/sss/gcc/gcc/gcc/c-common.c:1361
#2  0x08155641 in verify_sequence_points (expr=0x40083604)
    at /home/sss/gcc/gcc/gcc/c-common.c:1606
#3  0x0812224f in finish_expr_stmt (expr=0x40083604)
    at /home/sss/gcc/gcc/gcc/cp/semantics.c:497
...

It looks like this is more fallout from Richard's recent changes.

Environment:
System: Linux karma 2.6.7 #16 Tue Jun 22 21:52:28 EDT 2004 i686 i686 i386 GNU/Linux
Architecture: i686

	<machine, os, target, libraries (multiple lines)>
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: /home/sss/gcc/gcc/configure --prefix=/usr/local/gcc --enable-threads=posix --enable-long-long --enable-languages=c,c++,f95

How-To-Repeat:

Compile with -Wall:

----------------------------------
struct C
{
  ~C() throw();
};

void t_test1 (C* mapping)
{
  delete [] mapping;
}
----------------------------------
------- Additional Comments From snyder at fnal dot gov  2004-06-25 19:30 -------
Fix:
	<how to correct or work around the problem, if known (multiple lines)>

-- 
           Summary: 3.5: ICE with -Wall on no-throw specifier
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: snyder at fnal dot gov
                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=16205


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

* [Bug c++/16205] [3.5 Regression]: ICE with -Wall on no-throw specifier
  2004-06-25 19:35 [Bug c++/16205] New: 3.5: ICE with -Wall on no-throw specifier gcc-bugzilla at gcc dot gnu dot org
@ 2004-06-25 19:46 ` pinskia at gcc dot gnu dot org
  2004-06-27 17:40 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-25 19:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-25 19:35 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rth at gcc dot gnu dot org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-25 19:35:52
               date|                            |
            Summary|3.5: ICE with -Wall on no-  |[3.5 Regression]: ICE with -
                   |throw specifier             |Wall on no-throw specifier
   Target Milestone|---                         |3.5.0


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


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

* [Bug c++/16205] [3.5 Regression]: ICE with -Wall on no-throw specifier
  2004-06-25 19:35 [Bug c++/16205] New: 3.5: ICE with -Wall on no-throw specifier gcc-bugzilla at gcc dot gnu dot org
  2004-06-25 19:46 ` [Bug c++/16205] [3.5 Regression]: " pinskia at gcc dot gnu dot org
@ 2004-06-27 17:40 ` pinskia at gcc dot gnu dot org
  2004-06-27 20:12 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-27 17:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-27 17:39 -------
*** Bug 16227 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan at etpmod dot phys dot
                   |                            |tue dot nl


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


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

* [Bug c++/16205] [3.5 Regression]: ICE with -Wall on no-throw specifier
  2004-06-25 19:35 [Bug c++/16205] New: 3.5: ICE with -Wall on no-throw specifier gcc-bugzilla at gcc dot gnu dot org
  2004-06-25 19:46 ` [Bug c++/16205] [3.5 Regression]: " pinskia at gcc dot gnu dot org
  2004-06-27 17:40 ` pinskia at gcc dot gnu dot org
@ 2004-06-27 20:12 ` pinskia at gcc dot gnu dot org
  2004-06-28  2:12 ` 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-06-27 20:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-27 19:49 -------
I am working on fixing this one.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org


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


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

* [Bug c++/16205] [3.5 Regression]: ICE with -Wall on no-throw specifier
  2004-06-25 19:35 [Bug c++/16205] New: 3.5: ICE with -Wall on no-throw specifier gcc-bugzilla at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-06-27 20:12 ` pinskia at gcc dot gnu dot org
@ 2004-06-28  2:12 ` pinskia at gcc dot gnu dot org
  2004-06-28  2:15 ` cvs-commit 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-06-28  2:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-28 02:11 -------
Fixed.

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


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


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

* [Bug c++/16205] [3.5 Regression]: ICE with -Wall on no-throw specifier
  2004-06-25 19:35 [Bug c++/16205] New: 3.5: ICE with -Wall on no-throw specifier gcc-bugzilla at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-06-28  2:12 ` pinskia at gcc dot gnu dot org
@ 2004-06-28  2:15 ` cvs-commit at gcc dot gnu dot org
  2004-06-28  2:23 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-28  2:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-06-28 02:12 -------
Subject: Bug 16205

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2004-06-28 02:11:57

Modified files:
	gcc            : ChangeLog c-common.c 

Log message:
	2004-06-27  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR c++/16205
	* c-common.c (warn_for_collisions_1): Warn for only decls which
	have a name.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.4166&r2=2.4167
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.c.diff?cvsroot=gcc&r1=1.522&r2=1.523



-- 


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


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

* [Bug c++/16205] [3.5 Regression]: ICE with -Wall on no-throw specifier
  2004-06-25 19:35 [Bug c++/16205] New: 3.5: ICE with -Wall on no-throw specifier gcc-bugzilla at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-06-28  2:15 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-28  2:23 ` cvs-commit at gcc dot gnu dot org
  2004-06-28 16:38 ` reichelt at gcc dot gnu dot org
  2004-07-01 11:06 ` reichelt at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-28  2:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-06-28 02:14 -------
Subject: Bug 16205

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2004-06-28 02:14:53

Modified files:
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/warn: Wsequence-point-1.C 

Log message:
	2004-06-27  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR c++/16205
	* g++.dg/warn/Wsequence-point-1.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3907&r2=1.3908
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/warn/Wsequence-point-1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug c++/16205] [3.5 Regression]: ICE with -Wall on no-throw specifier
  2004-06-25 19:35 [Bug c++/16205] New: 3.5: ICE with -Wall on no-throw specifier gcc-bugzilla at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2004-06-28  2:23 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-28 16:38 ` reichelt at gcc dot gnu dot org
  2004-07-01 11:06 ` reichelt at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-06-28 16:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-06-28 16:30 -------
*** Bug 16247 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org


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


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

* [Bug c++/16205] [3.5 Regression]: ICE with -Wall on no-throw specifier
  2004-06-25 19:35 [Bug c++/16205] New: 3.5: ICE with -Wall on no-throw specifier gcc-bugzilla at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2004-06-28 16:38 ` reichelt at gcc dot gnu dot org
@ 2004-07-01 11:06 ` reichelt at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-07-01 11:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-07-01 11:06 -------
*** Bug 16312 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |salinger at sun dot felk dot
                   |                            |cvut dot cz


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


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

end of thread, other threads:[~2004-07-01 11:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-25 19:35 [Bug c++/16205] New: 3.5: ICE with -Wall on no-throw specifier gcc-bugzilla at gcc dot gnu dot org
2004-06-25 19:46 ` [Bug c++/16205] [3.5 Regression]: " pinskia at gcc dot gnu dot org
2004-06-27 17:40 ` pinskia at gcc dot gnu dot org
2004-06-27 20:12 ` pinskia at gcc dot gnu dot org
2004-06-28  2:12 ` pinskia at gcc dot gnu dot org
2004-06-28  2:15 ` cvs-commit at gcc dot gnu dot org
2004-06-28  2:23 ` cvs-commit at gcc dot gnu dot org
2004-06-28 16:38 ` reichelt at gcc dot gnu dot org
2004-07-01 11:06 ` reichelt 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).