public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19762] [3.4/4.0 regression] ICE in invalid explicit instantiation of a destructor
  2005-02-02 16:32 [Bug c++/19762] New: [3.4/4.0 regression] ICE in invalid explicit instantiation of a destructor reichelt at gcc dot gnu dot org
@ 2005-02-02 16:32 ` reichelt at gcc dot gnu dot org
  2005-02-09 13:41 ` mmitchel at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-02-02 16:32 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |monitored


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


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

* [Bug c++/19762] New: [3.4/4.0 regression] ICE in invalid explicit instantiation of a destructor
@ 2005-02-02 16:32 reichelt at gcc dot gnu dot org
  2005-02-02 16:32 ` [Bug c++/19762] " reichelt at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-02-02 16:32 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet causes an ICE since gcc 3.4.0:

======================================
template<int> struct A { ~A(){} };
template A<>::~A();
======================================

The error message is:

bug.cc:2: error: wrong number of template arguments (0, should be 1)
bug.cc:1: error: provided for 'template<int <anonymous> > struct A'
bug.cc:2: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in constructor_name_full, at cp/name-lookup.c:1662
Please submit a full bug report, [etc.]

-- 
           Summary: [3.4/4.0 regression] ICE in invalid explicit
                    instantiation of a destructor
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/19762] [3.4/4.0 regression] ICE in invalid explicit instantiation of a destructor
  2005-02-02 16:32 [Bug c++/19762] New: [3.4/4.0 regression] ICE in invalid explicit instantiation of a destructor reichelt at gcc dot gnu dot org
  2005-02-02 16:32 ` [Bug c++/19762] " reichelt at gcc dot gnu dot org
@ 2005-02-09 13:41 ` mmitchel at gcc dot gnu dot org
  2005-02-10  7:55 ` cvs-commit at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-02-09 13:41 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=19762


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

* [Bug c++/19762] [3.4/4.0 regression] ICE in invalid explicit instantiation of a destructor
  2005-02-02 16:32 [Bug c++/19762] New: [3.4/4.0 regression] ICE in invalid explicit instantiation of a destructor reichelt at gcc dot gnu dot org
  2005-02-02 16:32 ` [Bug c++/19762] " reichelt at gcc dot gnu dot org
  2005-02-09 13:41 ` mmitchel at gcc dot gnu dot org
@ 2005-02-10  7:55 ` cvs-commit at gcc dot gnu dot org
  2005-02-10  9:09 ` [Bug c++/19762] [3.4 " mmitchel at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-10  7:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-02-10 00:35 -------
Subject: Bug 19762

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	mmitchel@gcc.gnu.org	2005-02-10 00:34:47

Modified files:
	gcc/cp         : ChangeLog call.c decl.c parser.c 
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/g++.dg/template: crash2.C 
Added files:
	gcc/testsuite/g++.dg/conversion: ambig1.C 
	gcc/testsuite/g++.dg/ext: attrib19.C 
	gcc/testsuite/g++.dg/parse: dtor5.C 
	gcc/testsuite/g++.dg/template: dtor3.C static11.C 

Log message:
	PR c++/19787
	* call.c (initialize_reference): Robustify.
	
	PR ++/19732
	* decl.c (grokdeclarator): Check for invalid use of destructor
	names.
	
	PR c++/19762
	* parser.c (cp_parser_unqualified_id): Avoid creating destructor
	names with invalid types.
	
	PR c++/19826
	* parser.c (cp_parser_direct_declarator): Allow type-dependent
	expressions as array bounds.
	
	PR c++/19739
	* parser.c (cp_parser_attributes_list): Allow empty lists.
	
	PR c++/19787
	* g++.dg/conversion/ambig1.C: New test.
	
	PR c++/19739
	* g++.dg/ext/attrib19.C: New test.
	
	PR c++/19732
	* g++.dg/parse/dtor5.C: New test.
	
	PR c++/19762
	* g++.dg/template/dtor3.C: New test.
	
	PR c++/19826
	* g++.dg/template/static11.C: New test.
	* g++.dg/template/crash2.C: Remove dg-error marker.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4618&r2=1.4619
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&r1=1.528&r2=1.529
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1360&r2=1.1361
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.313&r2=1.314
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5011&r2=1.5012
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/conversion/ambig1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/attrib19.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/dtor5.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/dtor3.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/static11.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/crash2.C.diff?cvsroot=gcc&r1=1.3&r2=1.4



-- 


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


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

* [Bug c++/19762] [3.4 regression] ICE in invalid explicit instantiation of a destructor
  2005-02-02 16:32 [Bug c++/19762] New: [3.4/4.0 regression] ICE in invalid explicit instantiation of a destructor reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-02-10  7:55 ` cvs-commit at gcc dot gnu dot org
@ 2005-02-10  9:09 ` mmitchel at gcc dot gnu dot org
  2005-02-10 10:17 ` mmitchel at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-02-10  9:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2005-02-10 00:42 -------
Fixed in 4.0.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[3.4/4.0 regression] ICE in |[3.4 regression] ICE in
                   |invalid explicit            |invalid explicit
                   |instantiation of a          |instantiation of a
                   |destructor                  |destructor


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


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

* [Bug c++/19762] [3.4 regression] ICE in invalid explicit instantiation of a destructor
  2005-02-02 16:32 [Bug c++/19762] New: [3.4/4.0 regression] ICE in invalid explicit instantiation of a destructor reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-02-10  9:09 ` [Bug c++/19762] [3.4 " mmitchel at gcc dot gnu dot org
@ 2005-02-10 10:17 ` mmitchel at gcc dot gnu dot org
  2005-02-10 10:20 ` cvs-commit at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-02-10 10:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2005-02-10 01:13 -------
Fixed in GCC 3.4.4.

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


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


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

* [Bug c++/19762] [3.4 regression] ICE in invalid explicit instantiation of a destructor
  2005-02-02 16:32 [Bug c++/19762] New: [3.4/4.0 regression] ICE in invalid explicit instantiation of a destructor reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-02-10 10:17 ` mmitchel at gcc dot gnu dot org
@ 2005-02-10 10:20 ` cvs-commit at gcc dot gnu dot org
  2005-02-11 16:37 ` reichelt at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-10 10:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-02-10 01:12 -------
Subject: Bug 19762

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	mmitchel@gcc.gnu.org	2005-02-10 01:10:16

Modified files:
	gcc/testsuite  : ChangeLog 
	gcc/cp         : ChangeLog call.c parser.c 
Added files:
	gcc/testsuite/g++.dg/conversion: ambig1.C 
	gcc/testsuite/g++.dg/ext: attrib19.C 
	gcc/testsuite/g++.dg/template: dtor3.C 

Log message:
	PR c++/19787
	* call.c (initialize_reference): Robustify.
	
	PR c++/19762
	* parser.c (cp_parser_unqualified_id): Avoid creating destructor
	names with invalid types.
	
	PR c++/19739
	* parser.c (cp_parser_attributes_list): Allow empty lists.
	
	PR c++/19787
	* g++.dg/conversion/ambig1.C: New test.
	
	PR c++/19739
	* g++.dg/ext/attrib19.C: New test.
	
	PR c++/19762
	* g++.dg/template/dtor3.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.357&r2=1.3389.2.358
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/conversion/ambig1.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/attrib19.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/dtor3.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.195&r2=1.3892.2.196
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.452.2.22&r2=1.452.2.23
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.157.2.51&r2=1.157.2.52



-- 


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


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

* [Bug c++/19762] [3.4 regression] ICE in invalid explicit instantiation of a destructor
  2005-02-02 16:32 [Bug c++/19762] New: [3.4/4.0 regression] ICE in invalid explicit instantiation of a destructor reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2005-02-10 10:20 ` cvs-commit at gcc dot gnu dot org
@ 2005-02-11 16:37 ` reichelt at gcc dot gnu dot org
  2005-02-13  1:44 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-02-11 16:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-02-11 08:44 -------
Mark, I still get the failure on the 3.4 branch:

dPR19762.cc:2: error: wrong number of template arguments (0, should be 1)
dPR19762.cc:1: error: provided for `template<int <anonymous> > struct A'
dPR19762.cc:2: error: ISO C++ forbids declaration of `type name' with no type
dPR19762.cc:2: error: abstract declarator `int' used as declaration
dPR19762.cc:2: internal compiler error: tree check: expected class 'd', have 'x'
(error_mark) in do_decl_instantiation, at cp/pt.c:10671
Please submit a full bug report, [etc.]


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


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


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

* [Bug c++/19762] [3.4 regression] ICE in invalid explicit instantiation of a destructor
  2005-02-02 16:32 [Bug c++/19762] New: [3.4/4.0 regression] ICE in invalid explicit instantiation of a destructor reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2005-02-11 16:37 ` reichelt at gcc dot gnu dot org
@ 2005-02-13  1:44 ` pinskia at gcc dot gnu dot org
  2005-05-19 17:48 ` mmitchel at gcc dot gnu dot org
  2005-07-23  5:05 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-13  1:44 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |ASSIGNED


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


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

* [Bug c++/19762] [3.4 regression] ICE in invalid explicit instantiation of a destructor
  2005-02-02 16:32 [Bug c++/19762] New: [3.4/4.0 regression] ICE in invalid explicit instantiation of a destructor reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2005-02-13  1:44 ` pinskia at gcc dot gnu dot org
@ 2005-05-19 17:48 ` mmitchel at gcc dot gnu dot org
  2005-07-23  5:05 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-05-19 17:48 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.4                       |3.4.5


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


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

* [Bug c++/19762] [3.4 regression] ICE in invalid explicit instantiation of a destructor
  2005-02-02 16:32 [Bug c++/19762] New: [3.4/4.0 regression] ICE in invalid explicit instantiation of a destructor reichelt at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2005-05-19 17:48 ` mmitchel at gcc dot gnu dot org
@ 2005-07-23  5:05 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-23  5:05 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor


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


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

end of thread, other threads:[~2005-07-23  5:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-02 16:32 [Bug c++/19762] New: [3.4/4.0 regression] ICE in invalid explicit instantiation of a destructor reichelt at gcc dot gnu dot org
2005-02-02 16:32 ` [Bug c++/19762] " reichelt at gcc dot gnu dot org
2005-02-09 13:41 ` mmitchel at gcc dot gnu dot org
2005-02-10  7:55 ` cvs-commit at gcc dot gnu dot org
2005-02-10  9:09 ` [Bug c++/19762] [3.4 " mmitchel at gcc dot gnu dot org
2005-02-10 10:17 ` mmitchel at gcc dot gnu dot org
2005-02-10 10:20 ` cvs-commit at gcc dot gnu dot org
2005-02-11 16:37 ` reichelt at gcc dot gnu dot org
2005-02-13  1:44 ` pinskia at gcc dot gnu dot org
2005-05-19 17:48 ` mmitchel at gcc dot gnu dot org
2005-07-23  5:05 ` pinskia 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).