This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [might be a bug] Solaris vs Linux template handling
- To: Lavoie Philippe <lavoie at yoho dot genie dot uottawa dot ca>
- Subject: Re: [might be a bug] Solaris vs Linux template handling
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 17 May 1999 04:15:06 -0300
- Cc: egcs-bugs at egcs dot cygnus dot com
- References: <199904261523.LAA01992@yoho.genie.uottawa.ca> <or3e1m6xjg.fsf@lua.lbi.dcc.unicamp.br> <199904281513.LAA06073@yoho.genie.uottawa.ca> <ord80npq96.fsf@lua.lbi.dcc.unicamp.br> <199904291308.JAA07694@yoho.genie.uottawa.ca> <ord80nysjh.fsf@lua.lbi.dcc.unicamp.br> <199905031609.MAA00472@yoho.genie.uottawa.ca>
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