[Bug c++/51225] [c++0x] [4.7 Regression] ICE with invalid template parameter

reichelt at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Dec 4 22:46:00 GMT 2011


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

--- Comment #2 from Volker Reichelt <reichelt at gcc dot gnu.org> 2011-12-04 22:46:24 UTC ---
Here's another code snippet that triggers a similar ICE:

====================================
struct A {};

template<typename> struct B
{
  static constexpr A a = A(x);
};
====================================

bug.cc:5:28: error: 'x' was not declared in this scope
bug.cc:5:29: internal compiler error: unexpected expression '(const
A)(A)(<expression error>)' of kind implicit_conv_expr
Please submit a full bug report, [etc.]



More information about the Gcc-bugs mailing list