]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/constexpr-template6.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-template6.C
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 }
This page took 0.036828 seconds and 5 git commands to generate.