c++/8696: g++ 3.2 internal compiler error: Segmentation fault
justus@gmx.li
justus@gmx.li
Sun Nov 24 15:46:00 GMT 2002
>Number: 8696
>Category: c++
>Synopsis: g++ 3.2 internal compiler error: Segmentation fault
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 24 15:26:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Justus Schwartz
>Release: gcc version 3.2.1 20021111 (Debian prerelease) (and 2.95.4 and latest snapshot)
>Organization:
>Environment:
i386 (amd athlon) debian sid
>Description:
the following incorrect code in the next section (a "typename" is missing) causes g++ to abort with an internal compiler error. it would be nice to get an error message instead ;)
>How-To-Repeat:
just compile the code with g++ 3.2 or cvs snapshot (i got gcc version 3.3 20021124 (experimental))
the exact line was:
g++ -g -Wall -Werror bug_test.cc -o bug_test
and result:
bug_test.cc:5: internal compiler error: Segmentation fault
here the code causing this follows:
<code>
#include <iterator>
template<typename T>
struct A {
typedef std::iterator_traits<T>::value_type::value_type elementT;
};
int main() {}
</code>
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list