Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp1y/pr60573.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
// PR c++/60573 // { dg-do compile { target c++14 } } // { dg-options "" } struct A { struct B { void foo(auto); }; void B::foo(auto) {} // { dg-error "cannot define" } struct X { struct Y { struct Z { void foo(auto); }; }; void Y::Z::foo(auto) {} // { dg-error "cannot define" } }; void X::Y::Z::foo(auto) {} // { dg-error "cannot define" } };