This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/46283] Strange lookup of p->type::foo expressions
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 01 Feb 2012 02:56:10 +0000
- Subject: [Bug c++/46283] Strange lookup of p->type::foo expressions
- Auto-submitted: auto-generated
- References: <bug-46283-4@http.gcc.gnu.org/bugzilla/>
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)