[Bug c++/42291] gcc should reject code violating the C++ two-phase look-up rules.

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Dec 5 00:02:00 GMT 2009



------- Comment #1 from pinskia at gcc dot gnu dot org  2009-12-05 00:01 -------
>   MethodInBase(Foo());


Since Foo is dependent, it is looked up but base classes should be used to find
MethodInBase which means this is a dup of bug 24163.

*** This bug has been marked as a duplicate of 24163 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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



More information about the Gcc-bugs mailing list