Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp1y/pr60573.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // PR c++/60573 |
2 // { dg-do compile { target c++14 } } | |
3 // { dg-options "" } | |
4 | |
5 struct A | |
6 { | |
7 struct B | |
8 { | |
9 void foo(auto); | |
10 }; | |
11 | |
12 void B::foo(auto) {} // { dg-error "cannot define" } | |
13 | |
14 struct X | |
15 { | |
16 struct Y | |
17 { | |
18 struct Z | |
19 { | |
20 void foo(auto); | |
21 }; | |
22 }; | |
23 | |
24 void Y::Z::foo(auto) {} // { dg-error "cannot define" } | |
25 }; | |
26 | |
27 void X::Y::Z::foo(auto) {} // { dg-error "cannot define" } | |
28 }; |