Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/pr71966-1.C

raw
1 // PR c++/71966
2 // { dg-do compile { target c++11 } }
3
4 struct A
5 {
6 constexpr A (int); // { dg-message "never defined" }
7 constexpr operator int () const { return 0; }
8 };
9
10 template < int > struct B {};
11
12 constexpr A a = 0; // { dg-error "before its definition" }
13 B < a > b;