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++/100] confusing name lookup diagnostic


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-10 02:44 -------
Almost fixed in 4.1.0:
t.cc: In function ?int main()?:
t.cc:15: error: use of ?A? is ambiguous
t.cc:2: error:   first declared as ?class X::A? here
t.cc:6: error:   also declared as ?class Y::A? here
t.cc:15: error: ?A? was not declared in this scope
t.cc:15: error: expected `;' before ?a?


We should just chose one of the A's and then not say A was not declared in the scope.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=100


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