This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: template problem
- To: hnguyen at genome dot wi dot mit dot edu (hnguyen)
- Subject: Re: template problem
- From: Joe Buck <jbuck at synopsys dot COM>
- Date: Fri, 12 Nov 99 10:06:58 PST
- Cc: gcc at gcc dot gnu dot org
>
> Hi,
>
> I just install gcc-2.95.2 over 2.8 version. gcc-2.95.2 failed to compile
> a program which was successfully compiled by gcc-2.8.
This is probably because your program is not valid ISO C++. Older
versions of g++ accepted lots of invalid programs, and we don't promise
to keep compiling such things.
> Here is the error:
>
> g++ -gstabs+ -O -o test test.cc
> nutils.h: In instantiation of `matrix<double>':
> test.cc:20: instantiated from here
> nutils.h:589: invalid use of undefined type `class matrix<double>'
> nutils.h:659: forward declaration of `class matrix<double>'
Please send a complete input that demonstrates the problem, so we can
see whether your source or the compiler is bad (given your message
I suspect your source).