OSDN Git Service

2012-12-15 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-47969.C
1 // PR c++/47969
2 // { dg-options -std=c++0x }
3
4 struct A
5 {
6   // constexpr operator int () { return 1; }
7 };
8
9 constexpr A a = A();
10
11 int ar[a]; // { dg-error "has non-integral type" }