Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-default1.C

raw
1 // PR c++/53464
2 // { dg-do compile { target c++11 } }
3
4 template <int value>
5 struct bar
6 {
7 static constexpr int get()
8 {
9 return value;
10 }
11 };
12
13 template <typename A, int value = A::get()>
14 struct foo
15 {
16 };
17
18 int main()
19 {
20 typedef foo<bar<0>> type;
21 return 0;
22 }