This is the mail archive of the gcc-bugs@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]

internal compiler error for gcc 2.95.1



Hi,
I've got the attached code compiling fine of gcc version "egcs-2.91.66"
(on linux RedHat 6.0).
The same code, when compiled with the latest version (2.95.1) using:

   g++  -v --save-temps -c vec.cpp 

gives the following error message:


Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/specs
gcc version 2.95.1 19990816 (release)
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/cpp -lang-c++ -v
-D__GNUC__=2 -D__GNUG__=2 -
D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__ -Dunix -D__i386__ -Dlinux
-D__ELF__ -D__unix__ -D_
_i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS
-Acpu(i386) -Amachine(i
386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__
-D__pentiumpro -D__pe
ntiumpro__ vec.cpp vec.ii
GNU CPP version 2.95.1 19990816 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:

/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/../../../../include/g++-3
 /usr/local/include
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/include
 /usr/include
End of search list.
The following default directories have been omitted from the search
path:

/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/../../../../i686-pc-linux-gnu/include
End of omitted list.
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/cc1plus vec.ii -quiet
-dumpbase vec.cc -vers
ion -o vec.s
GNU C++ version 2.95.1 19990816 (release) (i686-pc-linux-gnu) compiled
by GNU C version 2.95.
1 19990816 (release).
In file included from vec.cpp:11:
vec.h:76: warning: friend declaration `class MEmath::Vec<3>
MEmath::operator /(const MEmath::
Vec<3> &, const MEmath::Vec<3> &)'
vec.h:76: warning:   declares a non-template function
vec.h:76: warning:   (if this is not what you intended, make sure
vec.h:76: warning:   the function template has already been declared,
vec.h:76: warning:   and add <> after the function name here)
vec.h:76: warning:   -Wno-non-template-friend disables this warning.
vec.cpp: In function `class MEmath::Vec<3> operator /(const
MEmath::Vec<3> &, const MEmath::V
ec<3> &)':
vec.cpp:16: Internal compiler error 378.
vec.cpp:16: Please submit a full bug report.
vec.cpp:16: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport>
for instructions.


I've included the code, the .ii output and the error message (err.msg)
in the attached tar.bz2.

Thanks,
Ilan

-- 
MobilEye Vision Technologies LTD
24 Mishol Hadkalim st. Jerusalem, 97278, Israel
Tel: 972-2-5866989  Fax: 972-2-5867720 Personal Fax: 1-801-912-3251
Email: mailto:ifinci@mobileye.com    http://www.mobileye.com

bug.tar.bz2

S/MIME Cryptographic Signature


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