[Bug c++/15706] [3.4 Regression] gcc-3.4.0 gives wrong error message regarding name conflict

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Tue Jun 1 15:11:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list