g++ 2.95.2 bug

Alexandre Oliva oliva@lsd.ic.unicamp.br
Wed Dec 1 13:24:00 GMT 1999


On Dec  1, 1999, Martin Sebor <sebor@roguewave.com> wrote:

> This is a report of a g++ 2.95.2 bug. The code below is illegal (see
> 14.7.3, p5) and should not compile.

Why not?  You have explicitly specialized A<int>.  The specialization
is unrelated with the unspecialized template.  Particularly, it
doesn't ``inherit'' the initializer from the unspecialized template.

Unless I misunderstood your complaint (I haven't tried to compile the
code snippet), and you're just complaining that it accepts the
explicit specialization without the preceding `template<>'.

-- 
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,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



More information about the Gcc-bugs mailing list