This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26558] New: segfault on syntax error
- From: "debian-gcc at lists dot debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Mar 2006 15:51:38 -0000
- Subject: [Bug c++/26558] New: segfault on syntax error
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
[forwarded from http://bugs.debian.org/349087]
g++ (GCC) 4.0.3 20060212 (prerelease) (Debian 4.0.2-9)
falk@gluck:~% 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 :)
}
};
falk@gluck:~% 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