[Bug c++/45011] template function specialization: does not respect access specifier

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jul 20 21:54:00 GMT 2010



------- Comment #1 from pinskia at gcc dot gnu dot org  2010-07-20 21:54 -------
Comeau online gives an error:
"ComeauTest.c", line 6: error: type "C::Private" (declared at line 3) is
          inaccessible
  template<typename T> void function(typename T::Private);
                                                 ^
          detected during instantiation of "function" based on template
                    argument <C> at line 9


-- 

pinskia at gcc dot gnu dot org changed:

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


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



More information about the Gcc-bugs mailing list