http://llvm.org/bugs/show_bug.cgi?id=12737
Douglas Gregor <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Douglas Gregor <[email protected]> 2012-05-04 12:10:49 CDT --- Clang is behaving correctly here. C++ [namespace.udecl]p15 says that only the name, parameter-type-list, cv-qualification, and ref-qualifier are used to determine whether we're hiding or not. In particular, the return type is *not* considered, so Clang is correct to make the 'get' in the current instantiation of other_variant hide the 'get' that comes from the base class. GCC should not accept this code, either. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
