This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Error compiling templates
- To: <egcs-bugs at egcs dot cygnus dot com>
- Subject: Error compiling templates
- From: "CPoblete" <poblete at lim dot com>
- Date: Fri, 27 Aug 1999 15:59:55 -0500
- Cc: "Cpoblete at Acm dot Org" <cpoblete at acm dot org>
Hello,
I am hoping you can help me on a compilation problem. I have implemented
specialized template functions but got compilation errors (first time I've
seen this; nevertheless I am confident that my implementations are correct.)
Perhaps my version of Linux egcs could not compile specialized templates
since I can compile the very same code in a Sun machine with "gcc version
2.8.1"!!!
As our code are proprietary, I have managed to create sample classes which
mimic our specialized template implementation. I have included all source
code, ii and s files, Makefile, and text dump of make (6.0 machine). I have
created 4 different (x11.C, x12.C, x21.C, x22.C) ways to use specialized
templates.
Two compilations were tested on two different Redhat Linux machines:
5.2 - compiles OK!
gcc version 2.7.2.3
g++ version: egcs-2.90.29 980515 (egcs-1.0.3 release)
6.0 - gives ERROR!
gcc version: egcs-2.91.66
g++ version: egcs-2.91.66
There are 21 files attached.
Thanks for any help.
mailto:cpoblete@acm.org
Auto.C
Auto.H
Auto.ii
Auto.s
Auto_Truck_Nissan_11.C
Auto_Truck_Nissan_11.ii
Auto_Truck_Nissan_11.s
Auto_Truck_Nissan_12.C
Auto_Truck_Nissan_12.ii
Auto_Truck_Nissan_12.s
Auto_Truck_Nissan_21.C
Auto_Truck_Nissan_21.ii
Auto_Truck_Nissan_21.s
Auto_Truck_Nissan_22.C
Auto_Truck_Nissan_22.ii
Auto_Truck_Nissan_22.s
make-curr_compiler.log
Makefile
Nissan.H
Truck1.H
Truck2.H