This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C++ PATCH] Fix PR4802, 5387


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]