This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]