This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24816] New: Crash on template specialization
- From: "t8 at pobox dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Nov 2005 21:11:21 -0000
- Subject: [Bug c++/24816] New: Crash on template specialization
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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