summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/name-clash6.C
blob: 63a0b15bf5eea55d687dc370e0fa8afe7fe99fc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright (C) 2007 Free Software Foundation
// Contributed by Ollie Wild <aaw@google.com>
// { dg-do compile }

// C++ Standard, 3.3, clause 4:
// "[Note: a namespace name or a class template name must be unique in its
// declarative region (7.3.2, clause 14). ]"

class N; // { dg-error "previous declaration" }

namespace N
{ // { dg-error "redeclared" }
}