template bug...

Alexandre Oliva oliva@dcc.unicamp.br
Wed Jun 30 15:43:00 GMT 1999


On Jun 25, 1999, "Jody Hagins" <jody@atdesk.com> wrote:

> class Foo_Bar
>   template <> Foo<Bar> foo_bar_;
>   template <> Foo<It> foo_it_;

> rome.atdesk.com:jody> g++ -c a.cpp
> a.cpp:7: invalid member template declaration `foo_bar_'
> a.cpp:8: invalid member template declaration `foo_it_'
> ../../gcc/tree.c:1955: Internal compiler error in function chainon

Thanks for your bug report.  The latest snapshot for the upcoming gcc
2.95 says:

t.cc:7: explicit specialization in non-namespace scope `Foo_Bar'
t.cc:8: explicit specialization in non-namespace scope `Foo_Bar'

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists



More information about the Gcc mailing list