summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/name-clash5.C
blob: 7f220d8877f7c88925c6922a0acdba74ff292f07 (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). ]"

namespace N
{ // { dg-error "previous declaration" }
}

class N; // { dg-error "redeclared" }