* [Bug c++/11991] ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:282 when applying typeid operator to template template parameter
2003-08-20 11:55 [Bug c++/11991] New: ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:282 when applying typeid operator to template template parameter blaz at blazlabs dot com
@ 2003-08-20 14:33 ` bangerth at dealii dot org
2003-08-20 14:36 ` [Bug c++/11991] [3.3 Regression] CE " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: bangerth at dealii dot org @ 2003-08-20 14:33 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11991
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Keywords| |ice-on-invalid-code
Resolution| |FIXED
------- Additional Comments From bangerth at dealii dot org 2003-08-20 14:33 -------
Confirmed with gcc 2.96, 3.2 and 3.3, but already fixed in mainline. The code in question is
---------------------------
#include <typeinfo>
template <template <class> class T> struct A {
void error() {
typeid(T).name();
}
};
template <class T> struct B {};
template void A<B>::error();
-------------------------------------------
which of course is invalid since T in typeid(T) is not a type but a template. Present mainline
gives the following error message:
tmp/g> ../build-gcc/gcc-install/bin/c++ -c x.cc
x.cc: In member function `void A<T>::error()':
x.cc:6: error: missing template arguments
W.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/11991] [3.3 Regression] CE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:282 when applying typeid operator to template template parameter
2003-08-20 11:55 [Bug c++/11991] New: ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:282 when applying typeid operator to template template parameter blaz at blazlabs dot com
2003-08-20 14:33 ` [Bug c++/11991] " bangerth at dealii dot org
@ 2003-08-20 14:36 ` pinskia at gcc dot gnu dot org
2003-08-20 14:37 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-20 14:36 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11991
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|FIXED |
Summary|ICE in |[3.3 Regression] CE in
|cxx_incomplete_type_diagnost|cxx_incomplete_type_diagnost
|ic, at cp/typeck2.c:282 when|ic, at cp/typeck2.c:282 when
|applying typeid operator to |applying typeid operator to
|template template parameter |template template parameter
Target Milestone|3.4 |3.3.2
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-20 14:36 -------
Actually this is a regression with respect to 2.95.3 so reopening.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/11991] [3.3 Regression] CE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:282 when applying typeid operator to template template parameter
2003-08-20 11:55 [Bug c++/11991] New: ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:282 when applying typeid operator to template template parameter blaz at blazlabs dot com
2003-08-20 14:33 ` [Bug c++/11991] " bangerth at dealii dot org
2003-08-20 14:36 ` [Bug c++/11991] [3.3 Regression] CE " pinskia at gcc dot gnu dot org
@ 2003-08-20 14:37 ` pinskia at gcc dot gnu dot org
2003-08-20 15:43 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-20 14:37 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11991
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-08-20 14:37:26
date| |
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-20 14:37 -------
>From 2.95.3, I get:
tin:~/src/gnu/gcctest>~/ia32_linux_gcc2_95/bin/gcc pr11991.cc
pr11991.cc: In method `void A<B>::error()':
pr11991.cc:11: instantiated from here
pr11991.cc:5: taking typeid of incomplete type `T'
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/11991] [3.3 Regression] CE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:282 when applying typeid operator to template template parameter
2003-08-20 11:55 [Bug c++/11991] New: ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:282 when applying typeid operator to template template parameter blaz at blazlabs dot com
` (2 preceding siblings ...)
2003-08-20 14:37 ` pinskia at gcc dot gnu dot org
@ 2003-08-20 15:43 ` pinskia at gcc dot gnu dot org
2003-08-20 15:54 ` bangerth at dealii dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-20 15:43 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11991
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-20 15:43 -------
The new parser fixed this regression so maybe this will not be fixed for 3.3.x.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/11991] [3.3 Regression] CE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:282 when applying typeid operator to template template parameter
2003-08-20 11:55 [Bug c++/11991] New: ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:282 when applying typeid operator to template template parameter blaz at blazlabs dot com
` (3 preceding siblings ...)
2003-08-20 15:43 ` pinskia at gcc dot gnu dot org
@ 2003-08-20 15:54 ` bangerth at dealii dot org
2003-09-17 21:44 ` [Bug c++/11991] [3.3 Regression] ICE " mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: bangerth at dealii dot org @ 2003-08-20 15:54 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11991
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Priority|P2 |P3
------- Additional Comments From bangerth at dealii dot org 2003-08-20 15:54 -------
This is certainly low priority: it's an ice-on-invalid, and the old error message wasn't
quite accurate either. There are certainly more important bugs to be fixed on the
release branch.
W.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/11991] [3.3 Regression] ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:282 when applying typeid operator to template template parameter
2003-08-20 11:55 [Bug c++/11991] New: ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:282 when applying typeid operator to template template parameter blaz at blazlabs dot com
` (4 preceding siblings ...)
2003-08-20 15:54 ` bangerth at dealii dot org
@ 2003-09-17 21:44 ` mmitchel at gcc dot gnu dot org
2003-09-18 1:08 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-09-17 21:44 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11991
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com
|dot org |
Status|NEW |ASSIGNED
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/11991] [3.3 Regression] ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:282 when applying typeid operator to template template parameter
2003-08-20 11:55 [Bug c++/11991] New: ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:282 when applying typeid operator to template template parameter blaz at blazlabs dot com
` (5 preceding siblings ...)
2003-09-17 21:44 ` [Bug c++/11991] [3.3 Regression] ICE " mmitchel at gcc dot gnu dot org
@ 2003-09-18 1:08 ` cvs-commit at gcc dot gnu dot org
2003-09-18 1:19 ` cvs-commit at gcc dot gnu dot org
2003-09-18 1:20 ` mmitchel at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-09-18 1:08 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11991
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-09-17 23:48 -------
Subject: Bug 11991
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_3-branch
Changes by: mmitchel@gcc.gnu.org 2003-09-17 23:48:27
Modified files:
gcc/cp : ChangeLog call.c class.c cp-tree.h typeck2.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/abi: bitfield11.C bitfield12.C
gcc/testsuite/g++.dg/overload: template1.C
gcc/testsuite/g++.dg/rtti: typeid3.C
Log message:
PR c++/11991
* typeck2.c (incomplete_type_diagnostic): Robustify.
PR c++/11991
* g++.dg/rtti/typeid3.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.3076.2.207&r2=1.3076.2.208
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/call.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.341.2.32&r2=1.341.2.33
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/class.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.499.2.21&r2=1.499.2.22
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.776.2.33&r2=1.776.2.34
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck2.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.132.4.3&r2=1.132.4.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.2261.2.281&r2=1.2261.2.282
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/abi/bitfield11.C.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/abi/bitfield12.C.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/overload/template1.C.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/rtti/typeid3.C.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=NONE&r2=1.1.2.1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/11991] [3.3 Regression] ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:282 when applying typeid operator to template template parameter
2003-08-20 11:55 [Bug c++/11991] New: ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:282 when applying typeid operator to template template parameter blaz at blazlabs dot com
` (6 preceding siblings ...)
2003-09-18 1:08 ` cvs-commit at gcc dot gnu dot org
@ 2003-09-18 1:19 ` cvs-commit at gcc dot gnu dot org
2003-09-18 1:20 ` mmitchel at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-09-18 1:19 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11991
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-09-17 23:50 -------
Subject: Bug 11991
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2003-09-17 23:50:05
Modified files:
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/rtti: typeid3.C
Log message:
PR c++/11991
* g++.dg/rtti/typeid3.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3061&r2=1.3062
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/rtti/typeid3.C.diff?cvsroot=gcc&r1=1.1&r2=1.2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/11991] [3.3 Regression] ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:282 when applying typeid operator to template template parameter
2003-08-20 11:55 [Bug c++/11991] New: ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:282 when applying typeid operator to template template parameter blaz at blazlabs dot com
` (7 preceding siblings ...)
2003-09-18 1:19 ` cvs-commit at gcc dot gnu dot org
@ 2003-09-18 1:20 ` mmitchel at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-09-18 1:20 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11991
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
------- Additional Comments From mmitchel at gcc dot gnu dot org 2003-09-17 23:50 -------
Fixed in GCC 3.3.2.
^ permalink raw reply [flat|nested] 10+ messages in thread