Trying to enable access enforcement on typedefs.
Jason Merrill
jason@cygnus.com
Tue Aug 31 23:20:00 GMT 1999
>>>>> Ram'on Garc'ia Fern'andez <ramon@jl1.quim.ucm.es> writes:
> I suppose that that there are some (probably subtle) problems in the
> implementation, and so GCC developers have choosen that it is better
> to allow incorrect code than something worse, such as generating incorrect
> code or giving an error for a correct program.
> Which are there problems?
This needs to work:
class A {
typedef int priv;
public:
static priv i;
};
A::priv A::i;
Jason
More information about the Gcc
mailing list