C++: simplify output from suggest_alternatives_for
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / lineno5.C
blob1865f117e0f6ac2a774047048537249df66e76c6
1 // { dg-do assemble  }
2 // 
3 // Copyright (C) 2001 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 25 Jul 2001 <nathan@codesourcery.com>
6 // Origin: johanb@DoCS.UU.SE
7 // Bug 3621. At the end of saved input, we'd set the lineno to
8 // zero. This would confusing things no end, if there was a subsequent
9 // error.
11 namespace tmp {
12   typedef int B;
13   B b;                          // { dg-message "tmp::b" }
16 class A {
17   public:
18   int kaka(tmp::B = b);         // { dg-error "'b' was not declared in this scope; did you mean 'tmp::b'" }