Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/lookup/pr94257.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
rev | line source |
---|---|
152 | 1 // { dg-do compile { target c++11 } } |
2 // PR94257 ICE with silly inline nest. | |
3 | |
4 inline namespace B { // { dg-message "namespace B { }" } | |
5 namespace B { } // { dg-message "namespace B::B { }" } | |
6 } | |
7 | |
8 namespace B { // { dg-error ".namespace B. is ambiguous" } | |
9 } | |
10 | |
11 // But this is fine | |
12 namespace D { | |
13 inline namespace D { } | |
14 } | |
15 namespace D { | |
16 } |