[Bug c++/46283] Strange lookup of p->type::foo expressions

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 1 02:56:00 GMT 2012


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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-01 02:56:10 UTC ---
I think the code should be rejected.  Here is what Comeau online says:
"ComeauTest.c", line 14: error: ambiguous class member reference -- type
"b::foo"
          (declared at line 4) used in preference to type "a::foo" (declared
          at line 10)



More information about the Gcc-bugs mailing list