Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/lookup/name-clash6.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 // Copyright (C) 2007 Free Software Foundation |
2 // Contributed by Ollie Wild <aaw@google.com> | |
3 // { dg-do compile } | |
4 | |
5 // C++ Standard, 3.3, clause 4: | |
6 // "[Note: a namespace name or a class template name must be unique in its | |
7 // declarative region (7.3.2, clause 14). ]" | |
8 | |
9 class N; // { dg-message "previous declaration" } | |
10 | |
11 namespace N // { dg-error "redeclared" } | |
12 { | |
13 } |