1 // { dg-do assemble } 2 // 3 // Copyright (C) 2001 Free Software Foundation, Inc. 4 // Contributed by Nathan Sidwell 25 Jul 2001 <nathan@codesourcery.com> 5 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. 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 "" } no b in scope 19 // { dg-message "suggested alternative" "suggested alternative" { target *-*-* } 18 } 20 }; 21