This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14877] New: [3.3/3.4/3.5 regression] ICE in find_function_data
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Apr 2004 13:45:56 -0000
- Subject: [Bug c++/14877] New: [3.3/3.4/3.5 regression] ICE in find_function_data
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
template<typename T>
struct S {
S () { };
static T *a () { return s; }
static T *s;
};
template<typename T> T *S<T>::s;
struct U : S<U>
{
int c (int x) const { return u[x]; }
friend class S<U>;
U ();
int u[2];
};
template <bool z>
struct B {
B (int x, int y = U::a ()->c (0)) : b (y) { }
int b;
};
void foo ()
{
B<false> f (1);
}
compiles with g++ 2.96-RH and 3.2.3-RH, but ICEs in 3.3, 3.4 and on the trunk.
--
Summary: [3.3/3.4/3.5 regression] ICE in find_function_data
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: any
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14877