]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/constexpr-static5.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-static5.C
1 // { dg-do compile { target c++11 } }
2
3 template <class T>
4 struct A
5 {
6 constexpr static T t = T(); // { dg-error "literal" }
7 };
8 template <class T>
9 constexpr T A<T>::t;
10
11 struct B
12 {
13 ~B();
14 };
15
16 B b = A<B>::t;
17
This page took 0.037957 seconds and 5 git commands to generate.