public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19884] New: [3.3/3.4/4.0 regression] ICE on explicit instantiation of a non-template constructor
@ 2005-02-11  4:29 reichelt at gcc dot gnu dot org
  2005-02-11  5:39 ` [Bug c++/19884] " pinskia 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-11  4:29 UTC (permalink / raw)
  To: gcc-bugs

The following code snippet causes an ICE since gcc 3.3:

==========================
struct A;
template A<>::A();
==========================

ctor.cc:2: error: 'A' is not a template
ctor.cc:2: error: explicit qualification in declaration of `A A()'
ctor.cc:2: internal compiler error: in lookup_template_function, at cp/pt.c:4245
Please submit a full bug report, [etc.]

This is similar to PR 19764 (only with the constructor instead of the
destructor), but the failure is in a different position and it's not fixed
in mainline.

-- 
           Summary: [3.3/3.4/4.0 regression] ICE on explicit instantiation
                    of a non-template constructor
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          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=19884


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

* [Bug c++/19884] [3.3/3.4/4.0 regression] ICE on explicit instantiation of a non-template constructor
  2005-02-11  4:29 [Bug c++/19884] New: [3.3/3.4/4.0 regression] ICE on explicit instantiation of a non-template constructor reichelt at gcc dot gnu dot org
@ 2005-02-11  5:39 ` pinskia at gcc dot gnu dot org
  2005-02-11  5:56 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-11  5:39 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.0


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


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

* [Bug c++/19884] [3.3/3.4/4.0 regression] ICE on explicit instantiation of a non-template constructor
  2005-02-11  4:29 [Bug c++/19884] New: [3.3/3.4/4.0 regression] ICE on explicit instantiation of a non-template constructor reichelt at gcc dot gnu dot org
  2005-02-11  5:39 ` [Bug c++/19884] " pinskia at gcc dot gnu dot org
@ 2005-02-11  5:56 ` pinskia at gcc dot gnu dot org
  2005-02-14 15:41 ` nathan at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-11  5:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-10 23:17 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-10 23:17:26
               date|                            |


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


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

* [Bug c++/19884] [3.3/3.4/4.0 regression] ICE on explicit instantiation of a non-template constructor
  2005-02-11  4:29 [Bug c++/19884] New: [3.3/3.4/4.0 regression] ICE on explicit instantiation of a non-template constructor reichelt at gcc dot gnu dot org
  2005-02-11  5:39 ` [Bug c++/19884] " pinskia at gcc dot gnu dot org
  2005-02-11  5:56 ` pinskia at gcc dot gnu dot org
@ 2005-02-14 15:41 ` nathan at gcc dot gnu dot org
  2005-02-14 17:55 ` nathan at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: nathan at gcc dot gnu dot org @ 2005-02-14 15:41 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |nathan at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-02-10 23:17:26         |2005-02-14 10:01:36
               date|                            |


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


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

* [Bug c++/19884] [3.3/3.4/4.0 regression] ICE on explicit instantiation of a non-template constructor
  2005-02-11  4:29 [Bug c++/19884] New: [3.3/3.4/4.0 regression] ICE on explicit instantiation of a non-template constructor reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-02-14 15:41 ` nathan at gcc dot gnu dot org
@ 2005-02-14 17:55 ` nathan at gcc dot gnu dot org
  2005-02-14 18:50 ` cvs-commit at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: nathan at gcc dot gnu dot org @ 2005-02-14 17:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From nathan at gcc dot gnu dot org  2005-02-14 13:35 -------
2005-02-14  Nathan Sidwell  <nathan@codesourcery.com>

	PR c++/19884
	* pt.c (check_explicit_specialization): Make sure namespace
	binding lookup found an overloaded function.
	(lookup_template_function): Just assert FNS is an overloaded
	function.

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


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


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

* [Bug c++/19884] [3.3/3.4/4.0 regression] ICE on explicit instantiation of a non-template constructor
  2005-02-11  4:29 [Bug c++/19884] New: [3.3/3.4/4.0 regression] ICE on explicit instantiation of a non-template constructor reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-02-14 17:55 ` nathan at gcc dot gnu dot org
@ 2005-02-14 18:50 ` cvs-commit at gcc dot gnu dot org
  2005-02-15 20:53 ` [Bug c++/19884] [3.3/3.4 " reichelt at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-14 18:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-02-14 13:45 -------
Subject: Bug 19884

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	nathan@gcc.gnu.org	2005-02-14 13:45:42

Modified files:
	gcc/cp         : ChangeLog decl.c pt.c 
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/g++.old-deja/g++.oliva: template6.C 
Added files:
	gcc/testsuite/g++.dg/parse: ptrmem3.C 
	gcc/testsuite/g++.dg/template: explicit6.C 

Log message:
	cp:
	PR c++/19884
	* pt.c (check_explicit_specialization): Make sure namespace
	binding lookup found an overloaded function.
	(lookup_template_function): Just assert FNS is an overloaded
	function.
	
	PR c++/19895
	* decl.c (grokdeclarator): Check for error mark node in ptrmem
	construction.
	testsuite:
	PR c++/19895
	* g++.dg/parse/ptrmem3.C: New.
	
	PR c++/19884
	* g++.old-deja/g++.oliva/template6.C: Add another case.
	* g++.dg/template/explicit6.C: New.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4627&r2=1.4628
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&r1=1.1363&r2=1.1364
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.976&r2=1.977
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5030&r2=1.5031
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/ptrmem3.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/explicit6.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.old-deja/g++.oliva/template6.C.diff?cvsroot=gcc&r1=1.3&r2=1.4



-- 


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


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

* [Bug c++/19884] [3.3/3.4 regression] ICE on explicit instantiation of a non-template constructor
  2005-02-11  4:29 [Bug c++/19884] New: [3.3/3.4/4.0 regression] ICE on explicit instantiation of a non-template constructor reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-02-14 18:50 ` cvs-commit at gcc dot gnu dot org
@ 2005-02-15 20:53 ` reichelt at gcc dot gnu dot org
  2005-04-16 22:03 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-02-15 20:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-02-15 12:33 -------
Not fixed on 3.3 and 3.4 branch.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |
            Summary|[3.3/3.4/4.0 regression] ICE|[3.3/3.4 regression] ICE on
                   |on explicit instantiation of|explicit instantiation of a
                   |a non-template constructor  |non-template constructor
   Target Milestone|4.0.0                       |3.4.4


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


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

* [Bug c++/19884] [3.3/3.4 regression] ICE on explicit instantiation of a non-template constructor
  2005-02-11  4:29 [Bug c++/19884] New: [3.3/3.4/4.0 regression] ICE on explicit instantiation of a non-template constructor reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2005-02-15 20:53 ` [Bug c++/19884] [3.3/3.4 " reichelt at gcc dot gnu dot org
@ 2005-04-16 22:03 ` pinskia at gcc dot gnu dot org
  2005-05-19 17:48 ` mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-16 22:03 UTC (permalink / raw)
  To: gcc-bugs



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


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


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

* [Bug c++/19884] [3.3/3.4 regression] ICE on explicit instantiation of a non-template constructor
  2005-02-11  4:29 [Bug c++/19884] New: [3.3/3.4/4.0 regression] ICE on explicit instantiation of a non-template constructor reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2005-04-16 22:03 ` pinskia at gcc dot gnu dot org
@ 2005-05-19 17:48 ` mmitchel at gcc dot gnu dot org
  2005-06-09  7:48 ` [Bug c++/19884] [3.4 " cvs-commit at gcc dot gnu dot org
  2005-06-09  7:48 ` [Bug c++/19884] " nathan 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=19884


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

* [Bug c++/19884] ICE on explicit instantiation of a non-template constructor
  2005-02-11  4:29 [Bug c++/19884] New: [3.3/3.4/4.0 regression] ICE on explicit instantiation of a non-template constructor reichelt at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2005-06-09  7:48 ` [Bug c++/19884] [3.4 " cvs-commit at gcc dot gnu dot org
@ 2005-06-09  7:48 ` nathan at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: nathan at gcc dot gnu dot org @ 2005-06-09  7:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From nathan at gcc dot gnu dot org  2005-06-09 07:48 -------
Fixed on 3.4
2005-06-08  Nathan Sidwell  <nathan@codesourcery.com>

	PR c++/19884
	* pt.c (check_explicit_specialization): Make sure namespace
	binding lookup found an overloaded function.
	(lookup_template_function): Just assert FNS is an overloaded
	function.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
            Summary|[3.4 regression] ICE on     |ICE on explicit
                   |explicit instantiation of a |instantiation of a non-
                   |non-template constructor    |template constructor


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


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

* [Bug c++/19884] [3.4 regression] ICE on explicit instantiation of a non-template constructor
  2005-02-11  4:29 [Bug c++/19884] New: [3.3/3.4/4.0 regression] ICE on explicit instantiation of a non-template constructor reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2005-05-19 17:48 ` mmitchel at gcc dot gnu dot org
@ 2005-06-09  7:48 ` cvs-commit at gcc dot gnu dot org
  2005-06-09  7:48 ` [Bug c++/19884] " nathan at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-06-09  7:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-09 07:46 -------
Subject: Bug 19884

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	nathan@gcc.gnu.org	2005-06-09 07:46:23

Modified files:
	gcc/cp         : ChangeLog cp-tree.def parser.c pt.c 
	gcc/testsuite  : ChangeLog 
	gcc/testsuite/g++.old-deja/g++.oliva: template6.C 
Added files:
	gcc/testsuite/g++.dg/parse: local-class1.C defarg9.C 
	gcc/testsuite/g++.dg/template: explicit6.C 

Log message:
	cp:
	PR c++/21903
	* cp-tree.def (DEFAULT_ARG): Document TREE_CHAIN use.
	* parser.c (cp_parser_late_parsing_default_args): Propagate parsed
	argument to any early instantiations.
	* pt.c (tsubst_arg_types): Chain early instantiation of default
	arg.
	
	PR c++/19884
	* pt.c (check_explicit_specialization): Make sure namespace
	binding lookup found an overloaded function.
	(lookup_template_function): Just assert FNS is an overloaded
	function.
	testsuite:
	PR c++/19608
	* parser.c (cp_parser_late_parsing_for_member): Use
	current_function_decl as scope to push to and from.
	testsuite:
	
	PR 21903
	* g++.dg/parse/defarg9.C: New.
	
	PR c++/19884
	* g++.old-deja/g++.oliva/template6.C: Add another case.
	* g++.dg/template/explicit6.C: New.
	
	PR c++/19608
	* g++.dg/parse/local-class1.C: New.

Patches:
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.223&r2=1.3892.2.224
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.def.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.80&r2=1.80.10.1
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.56&r2=1.157.2.57
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.816.2.54&r2=1.816.2.55
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.403&r2=1.3389.2.404
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/local-class1.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.28.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/defarg9.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/explicit6.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.28.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.old-deja/g++.oliva/template6.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3&r2=1.3.16.1



-- 


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


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

end of thread, other threads:[~2005-06-09  7:48 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-11  4:29 [Bug c++/19884] New: [3.3/3.4/4.0 regression] ICE on explicit instantiation of a non-template constructor reichelt at gcc dot gnu dot org
2005-02-11  5:39 ` [Bug c++/19884] " pinskia at gcc dot gnu dot org
2005-02-11  5:56 ` pinskia at gcc dot gnu dot org
2005-02-14 15:41 ` nathan at gcc dot gnu dot org
2005-02-14 17:55 ` nathan at gcc dot gnu dot org
2005-02-14 18:50 ` cvs-commit at gcc dot gnu dot org
2005-02-15 20:53 ` [Bug c++/19884] [3.3/3.4 " reichelt at gcc dot gnu dot org
2005-04-16 22:03 ` pinskia at gcc dot gnu dot org
2005-05-19 17:48 ` mmitchel at gcc dot gnu dot org
2005-06-09  7:48 ` [Bug c++/19884] [3.4 " cvs-commit at gcc dot gnu dot org
2005-06-09  7:48 ` [Bug c++/19884] " nathan 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).