This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/100] confusing name lookup diagnostic
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Sep 2005 02:44:35 -0000
- Subject: [Bug c++/100] confusing name lookup diagnostic
- References: <20000312005600.100.martin@loewis.home.cs.tu-berlin.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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