]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/pr84705.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr84705.C
CommitLineData
2be99998
PC
1// { dg-do compile { target c++11 } }
2// { dg-options "" }
3
4int a[]{a}; // { dg-error "invalid conversion" }
5
6template<int>
7struct b {
8 __attribute__((c([] {
9 struct {
10 int a = static_cast<struct d>(a); // { dg-error "invalid use of incomplete type" }
11 } e;
12 })));
13};
This page took 1.127961 seconds and 5 git commands to generate.