Re: Q about g++-3 and template instantiation

2001-05-03 Thread Ilya Martynov
>> Why use 'preprocessor switch'? AFAIK g++-2 should hanlde correct >> syntax too (without keyword 'template'). At least version 2.95.3 does >> compiles your example code with 'template' removed. Did you tried to >> compile your application with g++-2 with 'template' removed where it >> should be

Re: Q about g++-3 and template instantiation

2001-05-03 Thread Dan E. Kelley
> Why use 'preprocessor switch'? AFAIK g++-2 should hanlde correct > syntax too (without keyword 'template'). At least version 2.95.3 does > compiles your example code with 'template' removed. Did you tried to > compile your application with g++-2 with 'template' removed where it > should be remove

Re: Q about g++-3 and template instantiation

2001-05-03 Thread Ilya Martynov
DEK> Ilya, thanks VERY MUCH. This solved my problem in a flash. My DEK> application (38 thousand lines, compared to the 6 lines of my DEK> test-file) now compiles and links properly in g++-3, and, with a DEK> preprocessor switch, in g++-2 as well. In case other folks are DEK> interested, below

Re: Q about g++-3 and template instantiation

2001-05-03 Thread Ben Collins
On Thu, May 03, 2001 at 11:36:05AM -0300, Dan E. Kelley wrote: > Ilya, thanks VERY MUCH. This solved my problem in a flash. My > application (38 thousand lines, compared to the 6 lines of my > test-file) now compiles and links properly in g++-3, and, with a > preprocessor switch, in g++-2 as well

Re: Q about g++-3 and template instantiation

2001-05-03 Thread Dan E. Kelley
); #endif #endif Thanks very much for the help, delivered so quickly!! Dan. On 3 May 2001, Ilya Martynov wrote: > Date: 03 May 2001 17:50:45 +0400 > From: Ilya Martynov <[EMAIL PROTECTED]> > To: Dan Kelley <[EMAIL PROTECTED]> > Cc: debian-devel@lists.debian.org > Sub

Re: Q about g++-3 and template instantiation

2001-05-03 Thread Ilya Martynov
DEK> Attached is a 6-line C++ test program (which does nothing more than DEK> instantiate templates) that compiles in g++-2, with DEK> g++ -c test-template.cc DEK> but for which g++-3 yields the error messages: DEK> test-template.cc:4: non-template used as template DEK>

Q about g++-3 and template instantiation

2001-05-03 Thread Dan E. Kelley
I'm the author of `gri' (gri.sourceforge.net), which is packaged in Debian. I'm porting gri to g++-3 in preparation to Debian's (and everyone else's) eventual move to that compiler and I'm having some problems. Perhaps someone on this list could help? I hope it's not rude of me to be asking this