blob: 47126a363e3f031e506fa23a08816a94d87c29e0 [file] [log] [blame]
// { dg-do compile }
namespace N { namespace M { int foo; } } // { dg-message "'N::M::foo' declared here" }
int f (void) { return N::foo; } // { dg-error "'foo' is not a member of 'N'; did you mean 'N::M::foo'\\?" }
int g (void) { return ::foo; } // { dg-error "'::foo' has not been declared; did you mean 'N::M::foo'\\?" }