| 1 |
// { dg-do assemble } |
| 2 |
// |
| 3 |
// Copyright (C) 2001 Free Software Foundation, Inc. |
| 4 |
// Contributed by Nathan Sidwell 25 Jul 2001 <[email protected]> |
| 5 |
|
| 6 |
// Origin: [email protected] |
| 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. |
| 10 |
|
| 11 |
namespace tmp { |
| 12 |
typedef int B; |
| 13 |
B b; // { dg-message "tmp::b" } |
| 14 |
} |
| 15 |
|
| 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'" } |
| 19 |
}; |