Debian Codegraph @

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

raw
1 // PR c++/59268
2 // { dg-do compile { target c++11 } }
3
4 template <typename>
5 struct A
6 {
7 constexpr A (int) {}
8 virtual void foo ()
9 {
10 constexpr A<void> a (0);
11 }
12 };
13
14 void
15 bar ()
16 {
17 A<int> a (3);
18 a.foo ();
19 }