PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-static7.C
blob272ebd901d438cf595a721490f6181949525a08d
1 // PR c++/48945
2 // { dg-do compile { target c++11 } }
4 struct A {
5   static constexpr bool is();
6   static constexpr bool is_not();
7 };
9 constexpr bool A::is() { return true; }
10 constexpr bool A::is_not() const { return true; } // { dg-error "static" }