public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* a piece of code under egcs
@ 1999-03-15 10:34 Josip Rodin
  1999-03-16 16:14 ` Alexandre Oliva
  1999-03-31 23:46 ` Josip Rodin
  0 siblings, 2 replies; 8+ messages in thread
From: Josip Rodin @ 1999-03-15 10:34 UTC (permalink / raw)
  To: egcs

Hi,

I apologize if this is not the right place to ask this question;
please point me to the right source of information if that is the
case.

I have here a program that (author says so) compiles under gcc 2.8.
Under my EGCS g++ 2.91.60 it doesn't work:

c++ -DHAVE_CONFIG_H -I. -I. -I.. -D_GNU_SOURCE    -g -O2 -Wall -fno-implicit-templates -c Collection.cc
Collection.h: In function `class SCollection<T> * create(class File &)':
In file included from Collection.cc:22:
Collection.h:180: use of class template `template <class T> SCollection<T>' as expression
make[2]: *** [Collection.o] Error 1

Here is that part of the code from Collection.h:

template <class T> static SCollection<T>* create(class File& f)
{
 SCollection* sc = new SCollection<T>();
 if(!sc->read(f)) { delete sc; return 0; }
 return sc;
}

Please CC: me in your answers, I'm not subscribed to this list.
Thanks for any help.

-- 
enJoy -*/\*- http://jagor.srce.hr/~jrodin/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1999-03-31 23:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-15 10:34 a piece of code under egcs Josip Rodin
1999-03-16 16:14 ` Alexandre Oliva
     [not found]   ` < oryakxyo3h.fsf@dcc.unicamp.br >
1999-03-18 14:18     ` Josip Rodin
1999-03-18 14:19       ` Alexandre Oliva
1999-03-31 23:46         ` Alexandre Oliva
1999-03-31 23:46       ` Josip Rodin
1999-03-31 23:46   ` Alexandre Oliva
1999-03-31 23:46 ` Josip Rodin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).