This is the mail archive of the gcc-bugs@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: C++, 2.95: Maybe bug with nested template specialization


On Aug 12, 1999, Wolfgang Bangerth <wolf@gaia.iwr.uni-heidelberg.de> wrote:

> // Not being a language lawyer, I nevertheless think this should work.

Nope, specializations are only valid in namespace scopes (such as the
global namespace).  Move it out of the outer class and qualify it:

template <> class Outer::Inner<1> {};

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{dcc.unicamp.br,guarana.{org,com}} aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them


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