This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15706] [3.4 Regression] gcc-3.4.0 gives wrong error message regarding name conflict
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jun 2004 15:11:21 -0000
- Subject: [Bug c++/15706] [3.4 Regression] gcc-3.4.0 gives wrong error message regarding name conflict
- References: <20040528154454.15706.2boxers@comcast.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-06-01 15:11 -------
This is a duplicate of some other PR in which I complain that the
message we get from 3.3, namely
g/x> /home/bangerth/bin/gcc-3.3.4-pre/bin/c++ -c x.cc
x.cc: In function `void g()':
x.cc:9: error: use of `minus' is ambiguous
x.cc:6: error: first declared as `int (*minus)(int, int)' here
x.cc:3: error: also declared as `T f::minus(T, T)' here
x.cc:9: error: `minus' undeclared (first use this function)
x.cc:9: error: (Each undeclared identifier is reported only once for each
function it appears in.)
is completely bogus since it first complains that there are two
declarations, then that the name is undeclared. Someone may want to
go find that other PR.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15706