[Bug c++/38577] [4.4 Regression] ICE: tree check: expected call_expr, have compound_expr in build_new_method_call, at cp/call.c:6000
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Dec 19 15:25:00 GMT 2008
------- Comment #5 from jakub at gcc dot gnu dot org 2008-12-19 15:23 -------
Reduced testcase:
struct A
{
static A *bar () { return a; }
static A *a;
};
struct B : public A
{
static void baz ();
};
template <class T>
void foo ()
{
(static_cast<B *> (A::bar ()))->baz ();
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38577
More information about the Gcc-bugs
mailing list