[Bug c++/56895] [4.8/4.9 Regression] ICE: unexpected expression of kind arrow_expr

markus at trippelsdorf dot de gcc-bugzilla@gcc.gnu.org
Wed Apr 10 19:56:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56895

--- Comment #12 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2013-04-10 19:56:00 UTC ---
Just double checked and the original testcase still ICEs.

markus@x4 tmp % cat test.cpp
#include <iostream>
extern struct A { bool foo (); A bar (); } *a;
template <class> 
void
fn1 ()
{
  std::cout << (a->bar().foo() ? 1 : 0);
}

markus@x4 tmp % c++ -c test.cpp
test.cpp: In function ‘void fn1()’:
test.cpp:7:39: internal compiler error: unexpected expression ‘a->’ of kind
arrow_expr


More information about the Gcc-bugs mailing list