public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26365] New: ICE in finish_class_member_access_expr, at cp/typeck.c
@ 2006-02-19 20:18 cees at pcraster dot nl
2006-02-19 20:25 ` [Bug c++/26365] " cees at pcraster dot nl
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: cees at pcraster dot nl @ 2006-02-19 20:18 UTC (permalink / raw)
To: gcc-bugs
incorrect code gives ICE
--
Summary: ICE in finish_class_member_access_expr, at cp/typeck.c
Product: gcc
Version: 4.0.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: cees at pcraster dot nl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26365
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26365] ICE in finish_class_member_access_expr, at cp/typeck.c
2006-02-19 20:18 [Bug c++/26365] New: ICE in finish_class_member_access_expr, at cp/typeck.c cees at pcraster dot nl
@ 2006-02-19 20:25 ` cees at pcraster dot nl
2006-02-19 21:48 ` pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: cees at pcraster dot nl @ 2006-02-19 20:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from cees at pcraster dot nl 2006-02-19 20:25 -------
Created an attachment (id=10878)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10878&action=view)
the source giving the ICE
g++ -c calc_astsymbolinfo.ii
gives the ICE,
g++ --version:
g++ (GCC) 4.0.3 20060212 (prerelease) (Debian 4.0.2-9)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26365
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26365] ICE in finish_class_member_access_expr, at cp/typeck.c
2006-02-19 20:18 [Bug c++/26365] New: ICE in finish_class_member_access_expr, at cp/typeck.c cees at pcraster dot nl
2006-02-19 20:25 ` [Bug c++/26365] " cees at pcraster dot nl
@ 2006-02-19 21:48 ` pinskia at gcc dot gnu dot org
2006-02-19 23:06 ` [Bug c++/26365] [3.4/4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-19 21:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-02-19 21:48 -------
Reducing (that means I can reproduce this ICE).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26365
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26365] [3.4/4.0/4.1/4.2 Regression] ICE in finish_class_member_access_expr, at cp/typeck.c
2006-02-19 20:18 [Bug c++/26365] New: ICE in finish_class_member_access_expr, at cp/typeck.c cees at pcraster dot nl
2006-02-19 20:25 ` [Bug c++/26365] " cees at pcraster dot nl
2006-02-19 21:48 ` pinskia at gcc dot gnu dot org
@ 2006-02-19 23:06 ` pinskia at gcc dot gnu dot org
2006-02-24 0:19 ` mmitchel at gcc dot gnu dot org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-19 23:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-02-19 23:06 -------
Reduced testcase:
class Exchange{ };
struct optional
{
Exchange const* operator-> () const {}
};
namespace pcrxsd {
template< typename T, typename V> inline T fundamentalBaseCast() { }
void setInfo(optional &a)
{
a->pcrxsd::fundamentalBaseCast<int>
}
}
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-invalid-code
Known to fail| |3.3.3 3.4.0 4.0.0 4.1.0
| |4.2.0
Known to work| |3.2.3
Last reconfirmed|0000-00-00 00:00:00 |2006-02-19 23:06:29
date| |
Summary|ICE in |[3.4/4.0/4.1/4.2 Regression]
|finish_class_member_access_e|ICE in
|xpr, at cp/typeck.c |finish_class_member_access_e
| |xpr, at cp/typeck.c
Target Milestone|--- |4.0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26365
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26365] [3.4/4.0/4.1/4.2 Regression] ICE in finish_class_member_access_expr, at cp/typeck.c
2006-02-19 20:18 [Bug c++/26365] New: ICE in finish_class_member_access_expr, at cp/typeck.c cees at pcraster dot nl
` (2 preceding siblings ...)
2006-02-19 23:06 ` [Bug c++/26365] [3.4/4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-02-24 0:19 ` mmitchel at gcc dot gnu dot org
2006-02-24 0:31 ` mmitchel at gcc dot gnu dot org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-02-24 0:19 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26365
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26365] [3.4/4.0/4.1/4.2 Regression] ICE in finish_class_member_access_expr, at cp/typeck.c
2006-02-19 20:18 [Bug c++/26365] New: ICE in finish_class_member_access_expr, at cp/typeck.c cees at pcraster dot nl
` (3 preceding siblings ...)
2006-02-24 0:19 ` mmitchel at gcc dot gnu dot org
@ 2006-02-24 0:31 ` mmitchel at gcc dot gnu dot org
2006-03-27 11:27 ` reichelt at gcc dot gnu dot org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-02-24 0:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from mmitchel at gcc dot gnu dot org 2006-02-24 00:27 -------
This issue will not be resolved in GCC 4.1.0; retargeted at GCC 4.1.1.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.3 |4.1.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26365
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26365] [3.4/4.0/4.1/4.2 Regression] ICE in finish_class_member_access_expr, at cp/typeck.c
2006-02-19 20:18 [Bug c++/26365] New: ICE in finish_class_member_access_expr, at cp/typeck.c cees at pcraster dot nl
` (4 preceding siblings ...)
2006-02-24 0:31 ` mmitchel at gcc dot gnu dot org
@ 2006-03-27 11:27 ` reichelt at gcc dot gnu dot org
2006-04-15 3:47 ` [Bug c++/26365] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-03-27 11:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from reichelt at gcc dot gnu dot org 2006-03-27 11:27 -------
Here are two more reduced testcases. The first ICEs since GCC 3.4.0,
the second since at least GCC 2.95.3:
=====================================
struct A {};
namespace N
{
template<int> void foo();
}
void bar(A *p)
{
p->N::foo<0>();
}
=====================================
=====================================
struct A {};
namespace N
{
template<int> void foo();
}
void bar(A *p)
{
p->N::foo<0>; // without parens
}
=====================================
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Keywords| |monitored
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26365
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26365] [4.0/4.1/4.2 Regression] ICE in finish_class_member_access_expr, at cp/typeck.c
2006-02-19 20:18 [Bug c++/26365] New: ICE in finish_class_member_access_expr, at cp/typeck.c cees at pcraster dot nl
` (5 preceding siblings ...)
2006-03-27 11:27 ` reichelt at gcc dot gnu dot org
@ 2006-04-15 3:47 ` mmitchel at gcc dot gnu dot org
2006-04-16 18:12 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-04-15 3:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from mmitchel at gcc dot gnu dot org 2006-04-15 03:47 -------
Testing a fix.
--
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26365
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26365] [4.0/4.1/4.2 Regression] ICE in finish_class_member_access_expr, at cp/typeck.c
2006-02-19 20:18 [Bug c++/26365] New: ICE in finish_class_member_access_expr, at cp/typeck.c cees at pcraster dot nl
` (6 preceding siblings ...)
2006-04-15 3:47 ` [Bug c++/26365] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
@ 2006-04-16 18:12 ` mmitchel at gcc dot gnu dot org
2006-04-16 18:17 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-04-16 18:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from mmitchel at gcc dot gnu dot org 2006-04-16 18:12 -------
Subject: Bug 26365
Author: mmitchel
Date: Sun Apr 16 18:12:41 2006
New Revision: 112986
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112986
Log:
PR c++/26365
* typeck.c (finish_class_member_access_expr): Robustify
PR c++/26365
* g++.dg/template/crash45.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/template/crash45.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26365
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26365] [4.0/4.1/4.2 Regression] ICE in finish_class_member_access_expr, at cp/typeck.c
2006-02-19 20:18 [Bug c++/26365] New: ICE in finish_class_member_access_expr, at cp/typeck.c cees at pcraster dot nl
` (7 preceding siblings ...)
2006-04-16 18:12 ` mmitchel at gcc dot gnu dot org
@ 2006-04-16 18:17 ` mmitchel at gcc dot gnu dot org
2006-04-16 18:21 ` [Bug c++/26365] [4.0 " mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-04-16 18:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from mmitchel at gcc dot gnu dot org 2006-04-16 18:17 -------
Subject: Bug 26365
Author: mmitchel
Date: Sun Apr 16 18:17:38 2006
New Revision: 112987
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112987
Log:
PR c++/26365
* typeck.c (finish_class_member_access_expr): Robustify
PR c++/26365
* g++.dg/template/crash45.C: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/crash45.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/typeck.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26365
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26365] [4.0 Regression] ICE in finish_class_member_access_expr, at cp/typeck.c
2006-02-19 20:18 [Bug c++/26365] New: ICE in finish_class_member_access_expr, at cp/typeck.c cees at pcraster dot nl
` (8 preceding siblings ...)
2006-04-16 18:17 ` mmitchel at gcc dot gnu dot org
@ 2006-04-16 18:21 ` mmitchel at gcc dot gnu dot org
2006-05-25 2:38 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-04-16 18:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from mmitchel at gcc dot gnu dot org 2006-04-16 18:21 -------
Fixed in 4.1.1.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|mark at codesourcery dot com|unassigned at gcc dot gnu
| |dot org
Status|ASSIGNED |NEW
Summary|[4.0/4.1/4.2 Regression] ICE|[4.0 Regression] ICE in
|in |finish_class_member_access_e
|finish_class_member_access_e|xpr, at cp/typeck.c
|xpr, at cp/typeck.c |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26365
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26365] [4.0 Regression] ICE in finish_class_member_access_expr, at cp/typeck.c
2006-02-19 20:18 [Bug c++/26365] New: ICE in finish_class_member_access_expr, at cp/typeck.c cees at pcraster dot nl
` (9 preceding siblings ...)
2006-04-16 18:21 ` [Bug c++/26365] [4.0 " mmitchel at gcc dot gnu dot org
@ 2006-05-25 2:38 ` mmitchel at gcc dot gnu dot org
2006-05-25 16:29 ` pinskia at gcc dot gnu dot org
2007-02-03 16:19 ` gdr at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-25 2:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from mmitchel at gcc dot gnu dot org 2006-05-25 02:34 -------
Will not be fixed in 4.1.1; adjust target milestone to 4.1.2.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.1 |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26365
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26365] [4.0 Regression] ICE in finish_class_member_access_expr, at cp/typeck.c
2006-02-19 20:18 [Bug c++/26365] New: ICE in finish_class_member_access_expr, at cp/typeck.c cees at pcraster dot nl
` (10 preceding siblings ...)
2006-05-25 2:38 ` mmitchel at gcc dot gnu dot org
@ 2006-05-25 16:29 ` pinskia at gcc dot gnu dot org
2007-02-03 16:19 ` gdr at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-25 16:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from pinskia at gcc dot gnu dot org 2006-05-25 16:29 -------
Actually this was fixed in 4.1.1 so changing the milestone again.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|3.3.3 3.4.0 4.0.0 4.1.0 |3.3.3 3.4.0 4.0.0 4.1.0
|4.2.0 |
Known to work|3.2.3 |3.2.3 4.2.0 4.1.1
Target Milestone|4.1.2 |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26365
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/26365] [4.0 Regression] ICE in finish_class_member_access_expr, at cp/typeck.c
2006-02-19 20:18 [Bug c++/26365] New: ICE in finish_class_member_access_expr, at cp/typeck.c cees at pcraster dot nl
` (11 preceding siblings ...)
2006-05-25 16:29 ` pinskia at gcc dot gnu dot org
@ 2007-02-03 16:19 ` gdr at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 16:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from gdr at gcc dot gnu dot org 2007-02-03 16:19 -------
Fixed in GCC-4.1.1
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|4.0.4 |4.1.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26365
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2007-02-03 16:19 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-19 20:18 [Bug c++/26365] New: ICE in finish_class_member_access_expr, at cp/typeck.c cees at pcraster dot nl
2006-02-19 20:25 ` [Bug c++/26365] " cees at pcraster dot nl
2006-02-19 21:48 ` pinskia at gcc dot gnu dot org
2006-02-19 23:06 ` [Bug c++/26365] [3.4/4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-02-24 0:19 ` mmitchel at gcc dot gnu dot org
2006-02-24 0:31 ` mmitchel at gcc dot gnu dot org
2006-03-27 11:27 ` reichelt at gcc dot gnu dot org
2006-04-15 3:47 ` [Bug c++/26365] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
2006-04-16 18:12 ` mmitchel at gcc dot gnu dot org
2006-04-16 18:17 ` mmitchel at gcc dot gnu dot org
2006-04-16 18:21 ` [Bug c++/26365] [4.0 " mmitchel at gcc dot gnu dot org
2006-05-25 2:38 ` mmitchel at gcc dot gnu dot org
2006-05-25 16:29 ` pinskia at gcc dot gnu dot org
2007-02-03 16:19 ` gdr 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).