2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / lineno5.C
blobd14bd90c2db3660adb01ddbeda113568c8b43347
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;
16 class A {
17   public:
18   int kaka(tmp::B = b);         // { dg-error "" } no b in scope