[Bug c++/51289] New: Template template alias causes ICE
pubby.8 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Nov 23 23:47:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51289
Bug #: 51289
Summary: Template template alias causes ICE
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: pubby.8@gmail.com
gcc version 4.7.0 20111112 (experimental) (GCC)
Getting ICE when trying to use an alias to template template parameter:
template<typename a, template <typename, typename> class b>
struct foo {
template <typename t>
using type = b<a, t>;
template <typename t>
b<a, t> funca() {} // OK!
template <typename t>
type<t> funcb() {} // Compiler error! Should be have same behavior as funca.
};
main.cpp:10:9: internal compiler error: in lookup_template_class_1, at
cp/pt.c:7299
More information about the Gcc-bugs
mailing list