This is the mail archive of the gcc@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]

Re: Templates declared in class scope


Reid M Pinchback <reidmp@mit.edu> writes:

>   namespace foo {
>     template <class T> struct A {};
>     struct B {
>       template <class T> struct A {};
>     };
>   }

> but isn't template A in namespace scope while the member 
> template B::A is in class scope?
 
Yup; egcs 1.1 is wrong.

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil



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