[Bug c++/41437] No access control for classes in template functions
w.shane.grant at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Jun 21 18:17:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41437
Shane <w.shane.grant at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |w.shane.grant at gmail dot com
--- Comment #5 from Shane <w.shane.grant at gmail dot com> ---
This bug still exists for g++ 4.8.1. Crops up regardless of where the template
function is that tries to access the protected/private member:
class Base { void snarf() {} };
struct Derived : public Base
{
template <class T>
void bar( T & t )
{
snarf(); // this is incorrectly marked ok
}
};
More information about the Gcc-bugs
mailing list