GCC does not enforce access restrictions to typedefs.

Ram'on Garc'ia Fern'andez ramon@jl1.quim.ucm.es
Tue Aug 10 04:14:00 GMT 1999


The test has been done in GCC 2.95 under a Redhat Linux 6.0 (compiled by
myself), but it is likely to be independent of the operating system.

The problem is that GCC does allow the user of a class to access any typedefs
that it has, even if they are protected or private.




More information about the Gcc-bugs mailing list