Package: g++-4.0 Version: 4.0.2-5 Severity: normal
[ICE] segmentation fault with this 6 line long code... This is regression. There is file, commands and output below. main.cpp --- template <typename T> class C { template <int NO> int fun() { return NO;} template <int NO> int fun2() { return 0 << fun<NO>::; //bad code of course here :) } }; --- [EMAIL PROTECTED]:~/tst$ g++-3.3 main.cpp main.cpp:1: warning: all member functions in class `C' are private main.cpp: In member function `int C::fun2()': main.cpp:4: error: parse error before `;' token [EMAIL PROTECTED]:~/kodowanie/moje/praktyka/svn/tst$ g++ main.cpp main.cpp: In member function ‘int C<T>::fun2()’: main.cpp:4: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-4.0/README.Bugs>. [EMAIL PROTECTED]:~/tst$ /usr/lib/gcc-snapshot/bin/g++ main.cpp main.cpp: In member function 'int C<T>::fun2()': main.cpp:4: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. [EMAIL PROTECTED]:~/tst$ Pozdrawiam Slimak (na krawędzi) -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (800, 'testing'), (500, 'stable'), (70, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.14dwapiii.1.0 Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) Versions of packages g++-4.0 depends on: ii gcc-4.0 4.0.2-5 The GNU C compiler ii gcc-4.0-base 4.0.2-5 The GNU Compiler Collection (base ii libc6 2.3.5-8 GNU C Library: Shared libraries an ii libstdc++6-4.0-dev 4.0.2-5 The GNU Standard C++ Library v3 (d g++-4.0 recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]