From: SourceForge.net <no...@so...> - 2005-11-20 23:02:23
|
Bugs item #1362338, was opened at 2005-11-21 10:32 Message generated for change (Comment added) made by dannysmith You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1362338&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Edd (nunswithguns) Assigned to: Nobody/Anonymous (nobody) Summary: segfault g++ 3.4.2 Initial Comment: template<typename T> class segfault { friend T::T(); }; class test : public segfault<test> { }; int main() { test t; } compiler_error.cpp: In instantiation of `segfault<test>': compiler_error.cpp:7: instantiated from here compiler_error.cpp:4: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.mingw.org/bugs.shtml> for instructions. Windows 2000 Pro, SP4 gcc -v Reading specs from C:/devel/MinGW/bin/../lib/gcc/mingw32/3.4.2/specs Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug Thread model: win32 gcc version 3.4.2 (mingw-special) ld -v GNU ld version 2.15.91 20040904 MinGW-4.1.0.exe From _mingw.h #define __MINGW32_VERSION 3.7 #define __MINGW32_MAJOR_VERSION 3 #define __MINGW32_MINOR_VERSION 7 ---------------------------------------------------------------------- >Comment By: Danny Smith (dannysmith) Date: 2005-11-21 12:02 Message: Logged In: YES user_id=11494 Confirmed ICE with gcc-3.4.5 also. This is what 4.1.0 says: error.C:4: error: ISO C++ forbids declaration of 'T' with no type error.C: In instantiation of 'segfault<test>': error.C:7: instantiated from here error.C:4: error: invalid use of undefined type 'class test' error.C:7: error: forward declaration of 'class test' ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1362338&group_id=2435 |