This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51225] [c++0x] [4.7 Regression] ICE with invalid template parameter
- From: "reichelt at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 04 Dec 2011 22:46:24 +0000
- Subject: [Bug c++/51225] [c++0x] [4.7 Regression] ICE with invalid template parameter
- Auto-submitted: auto-generated
- References: <bug-51225-4@http.gcc.gnu.org/bugzilla/>
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.]