This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29927] New: template instantiation with function type
- From: "s__nakayama at infoseek dot jp" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Nov 2006 16:06:09 -0000
- Subject: [Bug c++/29927] New: template instantiation with function type
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Compile the following code and run it. It cause a segmentation fault.
template <class T>
void foo()
{
T bar;
bar();
}
int main()
{
foo<int ()>();
return 0;
}
--
Summary: template instantiation with function type
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: s__nakayama at infoseek dot jp
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29927