OSDN Git Service

PR c++/51462 - ICE in cx_check_missing_mem_inits
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-template2.C
1 // { dg-options -std=c++0x }
2
3 template <class T> struct A
4 {
5   T t;
6   constexpr A() { }             // { dg-error "uninitialized" }
7 };
8
9 int main()
10 {
11   constexpr A<int> a;           // { dg-error "A()" }
12 }