This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14230] New: ICE in cp_expr_size
- 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: 21 Feb 2004 00:16:21 -0000
- Subject: [Bug c++/14230] New: ICE in cp_expr_size
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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