This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: C++, 2.95: Maybe bug with nested template specialization
- To: Wolfgang Bangerth <wolf at gaia dot iwr dot uni-heidelberg dot de>
- Subject: Re: C++, 2.95: Maybe bug with nested template specialization
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 12 Aug 1999 20:33:36 -0300
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <199908122124.XAA00701@mira.isdn.cs.tu-berlin.de>
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