[Bug c++/67131] [6 Regression] ICE: Segmentation fault
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Aug 6 13:17:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67131
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2015-08-06
Ever confirmed|0 |1
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> ---
What version of clang compiles that with no errors? Mine says,
wa2.C:17:15: error: static_assert expression is not an integral constant
expression
static_assert(!valid_call(metafunction<no_type>),"");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
wa2.C:17:27: note: read of non-constexpr variable 'metafunction<no_type>' is
not allowed in a constant expression
static_assert(!valid_call(metafunction<no_type>),"");
^
wa2.C:17:27: note: in call to 'A(metafunction)'
wa2.C:6:45: note: declared here
template <template <typename> class f> A<f> metafunction;
^
More information about the Gcc-bugs
mailing list