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


Reply via email to