This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37439] New: ICE using auto return-type in template function
- From: "chris dot fairles at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Sep 2008 11:30:42 -0000
- Subject: [Bug c++/37439] New: ICE using auto return-type in template function
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
template<class T, class U>
auto add(T t, U u) -> decltype(t + u)
{ return t + u; }
int main()
{
add(1,2);
}
internal compiler error: in tsubst_copy, at cp/pt.c:9812
--
Summary: ICE using auto return-type in template function
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: chris dot fairles at gmail dot com
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37439