[forwarded from http://bugs.debian.org/349087]
g++ (GCC) 4.0.3 20060212 (prerelease) (Debian 4.0.2-9)
[EMAIL PROTECTED]:~% cat 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]:~% g++ -c 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.
Does not occur on alpha-linux-gnu, or with 3.3.6.
--
Summary: segfault on syntax error
Product: gcc
Version: 4.0.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
GCC build triplet: i486-linux-gnu
GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26558