This is the mail archive of the gcc@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: template problem


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



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