The following snippet causes g++ to crash and ask me to submit this report. I've looked at some other reports, but I'm not expert enough to determine if this is a duplicate or not. My appologies if it is. I'm not even sure if the code is valid.
#include <vector> template<typename T> T f(); template<typename E> std::vector<E> f(); template<> inline std::vector<float> f() { return std::vector<float>(); } int main(int argc, char* argv[]) { return 0; } -- Summary: Crash on template specialization Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: t8 at pobox dot com GCC host triplet: Linux i386/i686 GCC target triplet: Linux i386/i686 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24816