This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15696] [3.4/3.5 Regression] ICE with pointer-to-members
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 May 2004 13:09:40 -0000
- Subject: [Bug c++/15696] [3.4/3.5 Regression] ICE with pointer-to-members
- References: <20040528014556.15696.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-05-28 13:09 -------
Confirmed.
Stripping away unneccesary classes I get the following testcase:
========================================
struct A {};
typedef void (A::*ftype)();
void foo(A a) { a.*ftype(); }
========================================
Slightly modifing the last line, I get a testcase that already crashes
with gcc 3.4.0:
========================================
struct A {};
typedef void (A::*ftype)();
void foo() { A().*ftype(); }
========================================
PR15696.cc: In function `void foo()':
PR15696.cc:5: internal compiler error: in cxx_expand_expr, at cp/expr.c:101
Please submit a full bug report, [etc.]
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |monitored
Known to fail| |3.4.0 3.5.0
Known to work| |3.3.3
Last reconfirmed|0000-00-00 00:00:00 |2004-05-28 13:09:37
date| |
Summary|[3.5 Regression] ICE in |[3.4/3.5 Regression] ICE
|gimplifier with pointer-to- |with pointer-to-members
|members |
Target Milestone|3.5.0 |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15696