public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12495] [3.4 Regression] ICE in cp/typeck.c:907
[not found] <20031003012913.12495.rmerkert@alphatech.com>
@ 2003-10-17 12:07 ` lerdsuwa at gcc dot gnu dot org
2003-10-18 17:35 ` cvs-commit at gcc dot gnu dot org
2003-10-18 17:44 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 6+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2003-10-17 12:07 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=12495
lerdsuwa at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |lerdsuwa at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2003-10-17 11:32 -------
It's a latent bug exposed by patch:
http://gcc.gnu.org/ml/gcc-patches/2003-06/msg02744.html
Will work on a fix.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/12495] [3.4 Regression] ICE in cp/typeck.c:907
[not found] <20031003012913.12495.rmerkert@alphatech.com>
2003-10-17 12:07 ` [Bug c++/12495] [3.4 Regression] ICE in cp/typeck.c:907 lerdsuwa at gcc dot gnu dot org
@ 2003-10-18 17:35 ` cvs-commit at gcc dot gnu dot org
2003-10-18 17:44 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-10-18 17:35 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=12495
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-10-18 17:35 -------
Subject: Bug 12495
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: lerdsuwa@gcc.gnu.org 2003-10-18 17:35:48
Modified files:
gcc/cp : ChangeLog pt.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/template: crash12.C
Log message:
PR c++/12495
* pt.c (lookup_template_class): Handle when current_class_type
is a local class.
* g++.dg/template/crash21.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.3732&r2=1.3733
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.787&r2=1.788
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3129&r2=1.3130
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/crash12.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/12495] [3.4 Regression] ICE in cp/typeck.c:907
[not found] <20031003012913.12495.rmerkert@alphatech.com>
2003-10-17 12:07 ` [Bug c++/12495] [3.4 Regression] ICE in cp/typeck.c:907 lerdsuwa at gcc dot gnu dot org
2003-10-18 17:35 ` cvs-commit at gcc dot gnu dot org
@ 2003-10-18 17:44 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-18 17: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=12495
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-18 17:41 -------
Fixed for 3.4.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/12495] [3.4 Regression] ICE in cp/typeck.c:907
[not found] <20031003012913.12495.merkert@charter.net>
@ 2003-10-05 15:49 ` reichelt at gcc dot gnu dot org
0 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-10-05 15:49 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=12495
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Keywords|ice-on-invalid-code |monitored
------- Additional Comments From reichelt at gcc dot gnu dot org 2003-10-05 15:49 -------
The problem is the template parameter in the constructor of the local class.
Here's a shorter testcase to illustrate this:
=========================================
template <typename> struct A {};
template <typename T> void foo()
{
struct B
{
B (const A<T>&);
};
}
=========================================
I'm removing the "ice-on-invalid-code" keyword, since the invalid parts
of the first testcase have nothing to do with the ICE.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/12495] [3.4 Regression] ICE in cp/typeck.c:907
2003-10-03 1:29 [Bug c++/12495] New: [REGRESSION] " raimond_merkert at raytheon dot com
2003-10-03 2:26 ` [Bug c++/12495] [3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2003-10-03 2:28 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-03 2:28 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=12495
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-03 02:28 -------
I meant not the same bug as PR 2513.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/12495] [3.4 Regression] ICE in cp/typeck.c:907
2003-10-03 1:29 [Bug c++/12495] New: [REGRESSION] " raimond_merkert at raytheon dot com
@ 2003-10-03 2:26 ` pinskia at gcc dot gnu dot org
2003-10-03 2:28 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-03 2:26 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=12495
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nathan at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-invalid-code, ice-on-
| |valid-code
Last reconfirmed|0000-00-00 00:00:00 |2003-10-03 02:26:25
date| |
Summary|[REGRESSION] ICE in |[3.4 Regression] ICE in
|cp/typeck.c:907 |cp/typeck.c:907
Target Milestone|--- |3.4
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-03 02:26 -------
The shown is invalid but this valid code:
template <class T>
class Array {};
template <class T>
class IteratorImpl {};
template <class T>
class Iterator {
public:
Iterator (const IteratorImpl<T>* x) { delete x; }
};
template <class T>
Iterator<T> iterator (const Array<T>& t)
{
struct Impl : public IteratorImpl<T> {
Array<T> _a;
Impl (const Array<T>& a)
: _a(a) {}
~Impl() {}
};
return Iterator<T>(new Impl());
}
Does the same ICE, this is most likely the same as bug 2513.
>From Phil's regression hunter: Search converges between 2003-06-23-trunk (#322) and 2003-
06-24-trunk (#323).
Might have been caused by <http://gcc.gnu.org/ml/gcc-patches/2003-06/msg02744.html>
which is the only patch which touched comptypes during that time period.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-10-18 17:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20031003012913.12495.rmerkert@alphatech.com>
2003-10-17 12:07 ` [Bug c++/12495] [3.4 Regression] ICE in cp/typeck.c:907 lerdsuwa at gcc dot gnu dot org
2003-10-18 17:35 ` cvs-commit at gcc dot gnu dot org
2003-10-18 17:44 ` pinskia at gcc dot gnu dot org
[not found] <20031003012913.12495.merkert@charter.net>
2003-10-05 15:49 ` reichelt at gcc dot gnu dot org
2003-10-03 1:29 [Bug c++/12495] New: [REGRESSION] " raimond_merkert at raytheon dot com
2003-10-03 2:26 ` [Bug c++/12495] [3.4 Regression] " pinskia at gcc dot gnu dot org
2003-10-03 2:28 ` 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).