This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/25744] New: typename causes segmentation fault
- From: "h8_spam at sonic dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jan 2006 22:30:25 -0000
- Subject: [Bug c/25744] New: typename causes segmentation fault
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gcc -v:
Reading specs from /tools/new/lib/gcc/i686-pc-linux-gnu/3.4.4/specs
Configured with: ../configure --enable-threads=posix --prefix=/tools/new
--enable-language=c,c++,java --disable-checking --enable-shared
Thread model: posix
gcc version 3.4.4
Invoke gcc simply as:
gcc test.cc
Where test.cc is below.
test.cc: In function `void test()':
test.cc:10: 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.
-------------------------test.cc------------------------------------
#include <map>
using namespace std;
void
test()
{
map<int, int> testMap;
map<int, int>::iterator itr = testMap.begin();
testMap.insert(itr,
/* Delete next 'typename' to avoid crash */
typename map<int, int>::value_type(4, 3));
}
-----------------------test.ii---------------------------------------------
I'd give it to you but bugzilla complains that the report is longer than 64k.
--
Summary: typename causes segmentation fault
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: h8_spam at sonic dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25744