When compiling the attached file, ld gets a segmentation fault. If I make the template smaller or make a few other minor changes to the template (such as changing the default template argument from Null to int), I do not get a segfault.
I am using stock binutils (2.17) and gcc (4.1.2) on Suse 10.0, Athlon XP 3000. $ g++4 bug.cpp collect2: ld terminated with signal 11 [Segmentation fault] $ ld --version GNU ld version 2.17 Copyright 2005 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. -- Summary: segfault (C++ source file has large template) Product: binutils Version: 2.17 Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: cpp at tempest-sw dot com CC: bug-binutils at gnu dot org GCC build triplet: i686-pc-linux GCC host triplet: i686-pc-linux GCC target triplet: i686-pc-linux http://sourceware.org/bugzilla/show_bug.cgi?id=4068 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils