This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
internal g++ error with nested template instanciation
- To: gcc-bugs at gcc dot gnu dot org
- Subject: internal g++ error with nested template instanciation
- From: Francois-Xavier Kowalski <Francois-Xavier dot Kowalski at club-internet dot fr>
- Date: Mon, 16 Oct 2000 23:46:05 +0200 (CEST)
- Organization: Never, as far as I remember
As per request of the g++ output:
From: <http://gcc.gnu.org/bugs.html>
What we need
Please include in your bug report all of the following items:
The GCC version (not just 2.xx; run gcc -v)
The system type (the dir name after gcc-lib in the output of gcc -v
The complete command line that triggers the bug
The compiler output (error messages, warnings, etc)
See the full g++ output:
g++ -v -c -I../LinuxGlibc_Porting -I../opencall/ConfigLib -I../opencall/HP-AIN -I../opencall/PLUGIN_CommApi -I../opencall/PLUGIN_Message -I../opencall/TimerLib -D__cplusplus=200009L -Dallocator=alloc -DNEW_NOTHROW=new\(nothrow\) -DHAVE_PCA_H -DHAVE_PCA_LIB -DDONT_USE_MEM_HANDLER -DPLUGIN_DOESNT_USE_MEM_HANDLER -g OCTcl_PcaCommand.C -o OCTcl_PcaCommand.o
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cpp -lang-c++ -v -I../LinuxGlibc_Porting -I../opencall/ConfigLib -I../opencall/HP-AIN -I../opencall/PLUGIN_CommApi -I../opencall/PLUGIN_Message -I../opencall/TimerLib -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__ -Dunix -Di386 -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(posix) -D__EXCEPTIONS -g -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_i386__ -D__cplusplus=200009L -Dallocator=alloc -DNEW_NOTHROW=new(nothrow) -DHAVE_PCA_H -DHAVE_PCA_LIB -DDONT_USE_MEM_HANDLER -DPLUGIN_DOESNT_USE_MEM_HANDLER OCTcl_PcaCommand.C /var/tmp/fxk/ccH15EZz.ii
GNU CPP version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386 Linux/ELF)
*Initialization*:1: warning: `__cplusplus' redefined
*Initialization*:1: warning: this is the location of the previous definition
#include "..." search starts here:
#include <...> search starts here:
../LinuxGlibc_Porting
../opencall/ConfigLib
../opencall/HP-AIN
../opencall/PLUGIN_CommApi
../opencall/PLUGIN_Message
../opencall/TimerLib
/usr/include/g++-2
/usr/i386-redhat-linux/include
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cc1plus /var/tmp/fxk/ccH15EZz.ii -quiet -dumpbase OCTcl_PcaCommand.cc -g -version -o /var/tmp/fxk/ccMbg7FD.s
GNU C++ version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386-redhat-linux) compiled by GNU C version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release).
In file included from OCTcl_ClientData.H:19,
from OCTcl_PcaCommand.C:15:
../opencall/PLUGIN_CommApi/PCA_Manager.h:188: warning: `class PCA_Manager' only defines a private destructor and has no friends
OCTcl_PcaCommand.C: In function `int OCTcl_SendMessage(void *, struct Tcl_Interp *, int, struct Tcl_Obj *const *)':
OCTcl_PcaCommand.C:162: Internal compiler error.
OCTcl_PcaCommand.C:162: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
OCTcl_PcaCommand.C:162: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
The preprocessed file (*.i*) that triggers the bug, generated by
adding -save-temps to the complete compilation command (see
below)
OCTcl_PcaCommand.ii.gz
The options given when GCC was configured/built
I do not known the answer. I use final RedHat 6.2 for Linux. RPM
package are:
egcs-c++-1.1.2-30
egcs-1.1.2-30
`g++ -v' gives:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/spec
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
My question is: How can I work around this problem?
Regards.
Fix.
--
Jh 28 ans, informaticien, cherche femme sur Chartres.
-+- PGeorges in GNU - Elle est oû la Charte du groupe ? -+-