[Bug c++/52379] When inheriting a class X from another namespace, inside the class X will always refer to that one.
daniel.kruegler at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Sat Feb 25 13:59:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52379
Daniel Krügler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler at
| |googlemail dot com
--- Comment #2 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2012-02-25 13:06:47 UTC ---
The name 'A' within Two::B refers to the base class A (which is One::A), which
again has no what() function. This is essentially the injected-class-name of
the base class as described in the name-lookup of members.
The compiler is correct to reject the code (In addition, the compiler should
also reject the semicolon after the closing brace of the namespaces).
More information about the Gcc-bugs
mailing list