Message ID | 528A322C.9000008@oracle.com |
---|---|
State | New |
Headers | show |
Index: g++.dg/cpp0x/constexpr-noexcept7.C =================================================================== --- g++.dg/cpp0x/constexpr-noexcept7.C (revision 0) +++ g++.dg/cpp0x/constexpr-noexcept7.C (working copy) @@ -0,0 +1,9 @@ +// PR c++/53473 +// { dg-do compile { target c++11 } } + +template<typename T> struct A +{ + static constexpr T foo() noexcept { return 0; } +}; + +template<> constexpr int A<int>::foo() noexcept { return 0; }