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++/46283] Strange lookup of p->type::foo expressions


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)


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