[Bug c++/14230] New: ICE in cp_expr_size
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Feb 21 00:16:00 GMT 2004
struct A
{
A ();
A (const A&);
A& operator= (const A&);
};
template<class T>
struct B
{
struct C
{
T y;
T f () { return y; }
};
T f () const
{
C c;
return c.f ();
}
};
struct D
{
A a;
};
void foo (B<D> &x)
{
const A& z = x.f().a;
}
causes ICE on all platforms I've tried, 3.3.3 and 3.4.
It doesn't cause ICE in 2.96-RH, so looks like regression.
--
Summary: ICE in cp_expr_size
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 build triplet: x86_64-redhat-linux
GCC host triplet: x86_64-redhat-linux
GCC target triplet: x86_64-redhat-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14230
More information about the Gcc-bugs
mailing list