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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-01-18 
15:07:56 UTC ---
access control isn't done for a nested-name-specifier

class C
{
  struct Private { };
};

template<typename T>
struct exploit
{
    typedef T type;
};

exploit<C::Private>::type x2;   // should be an error

Reply via email to