This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/3621: Wrong line number in c++ error message.
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/3621: Wrong line number in c++ error message.
- From: johanb at DoCS dot UU dot SE
- Date: Mon, 09 Jul 2001 16:05:35 +0200
>Number: 3621
>Category: c++
>Synopsis: Wrong line number in c++ error message.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 09 07:16:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Johan Bengtsson
>Release: 3.0
>Organization:
>Environment:
System: Linux Toker 2.4.5-xfs #3 Wed Jul 4 11:52:41 CEST 2001 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../configure --enable-shared --enable-threads --enable-languages=c++ --program-prefix=n : (reconfigured) ../configure --enable-shared --enable-threads --enable-languages=c++
>Description:
The missing namespace specifier for b on line 9 in the attached program
is reported as being on line 0.
Toker:~/tmp > c++ bug.cc
bug.cc:0: `b' was not declared in this scope
>How-To-Repeat:
Compile the attached program:
--8<--
# 1 "bug.cc"
namespace tmp {
typedef int B;
B b;
}
class A {
public:
int kaka(tmp::B = b);
};
--8<--
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: