aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/ambig4.C
blob: 3a74f7d1c767be43952c63d60ce9aea2ccfe4815 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/13377
// Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
// { dg-do compile }

namespace N
{
  int i;            // { dg-error "i" }
}

int i;              // { dg-error "i" }

using namespace N;

void foo() { i; }   // { dg-error "ambiguous" }