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