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;
                                            ^

Reply via email to