This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35828] [C++0x] ICE on default template template parameter in template function
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Dec 2008 22:11:55 -0000
- Subject: [Bug c++/35828] [C++0x] ICE on default template template parameter in template function
- References: <bug-35828-6959@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from reichelt at gcc dot gnu dot org 2008-12-28 22:11 -------
Confirmed. Reduced testcase for comment #1:
=====================================================================
template<typename> struct A;
template<typename, template<typename> class = A> void foo();
void bar()
{
foo<int>();
}
=====================================================================
bug.cc: In function 'void bar()':
bug.cc:1: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
Removing the first template parameter yields a different error:
=====================================================================
template<typename> struct A;
template<template<typename> class = A> void foo();
void bar()
{
foo();
}
=====================================================================
bug.cc: In function 'void bar()':
bug.cc:1: internal compiler error: in tsubst_decl, at cp/pt.c:7958
Please submit a full bug report, [etc.]
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-12-28 22:11:55
date| |
Summary|ICEs in template-heavy C++0x|[C++0x] ICE on default
|code |template template parameter
| |in template function
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35828