]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/pr71054.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr71054.C
CommitLineData
842dc2e6
JJ
1// PR c++/71054
2// { dg-do compile { target c++11 } }
3
4#include <initializer_list>
5
6template <typename D, typename T = decltype (&D::U)>
7struct S
8{
9 struct A
10 {
11 int a;
12 int b;
13 T p;
14 };
15 S () { std::initializer_list<A> a{ {0, 0, &D::V} }; }
16};
17struct R {
18 void V (int);
19 void U (int);
20};
21S<R> b;
This page took 2.704233 seconds and 5 git commands to generate.