[C++ PATCH] Fix PR4802, 5387
Gabriel Dos Reis
gdr@codesourcery.com
Sun May 26 11:02:00 GMT 2002
Gabriel Dos Reis <gdr@codesourcery.com> writes:
| Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> writes:
|
| [...]
|
| | + // PR c++/5387
| | + // Enforcing access of typename type.
| | +
| | + template <class T> struct A {
| | + typename T::X x; // { dg-error "this context" }
| | + int f() { return T::i; } // { dg-error "this context" }
| | + };
|
| That is not an error when A<> is explicitly instantiated:
Please, disregard the above. For some reasons, I was under the
impression that we should not be enforceing rules in that case.
Sorry for the confusion.
-- Gaby
More information about the Gcc-patches
mailing list