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: [might be a bug] Solaris vs Linux template handling


On May  3, 1999, Lavoie Philippe <lavoie@yoho.genie.uottawa.ca> wrote:

> Either I really don't understand what's going on or there is something
> wrong with -frepo

There's something wrong with -frepo.

First of all, it shouldn't accept:

> template <> int A<int>::f<int>(int b)

The second `<int>' should be rejected, because f is not a member
template, it is just a member function of a template class.

This should also be rejected:

> int A<int>::f<int>(int b)

Them problem is that the template explicit specialization is emitted
for all translation units that include it.  This shouldn't happen.  It 
seems that egcs is compiling it as an explicit instantiation, but this 
is wrong.

It seems to me that you're out of luck :-(

-- 
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


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