This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Internal Compiler error while trying to compile template code
- To: gcc at gcc dot gnu dot org
- Subject: Internal Compiler error while trying to compile template code
- From: Koundinya K <knk at dde dot dk>
- Date: Wed, 22 Mar 2000 17:52:23 -0700
- Organization: Dansk Data Elektronik A/S
Hi,
I have been trying to compile some code that has lots of templates
with my newly built gcc/g++ (2.95.2) and the compiler cites "Internal
compiler error" as shown below.
g++ -g -Wno-uninitialized -fno-implicit-templates
-I/test/ssc/ACE_wrappers-1.0.12 -DACE_HAS_EXCEPTIONS -c -fpic -o
.shobj/Service_Types.o Service_Types.cpp
Service_Types.cpp:416: Internal compiler error.
Service_Types.cpp:416: Please submit a full bug report.
Service_Types.cpp:416: See
<URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for
instructions.
BTW, this is for a mips based machine running SVR4.2. (This is a yet to
be contributed port)
I would like to know if g++ has any limitations for compiling template
code on mips.
Are there any macros that need to be specified for this purpose in the
configuration file that contains the target definitions ?
I scanned through whole of the "Using and Porting GNU C" doc. But could
got no clues.
Have these macros MAKE_DECL_ONE_ONLY and UNIQUE_SECTION_P ( used by
iris6gld.h and elf.h)
got to do something with templates ??
Thanks for any pointers.
regards
koundinya