This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28088] [4.1 Regression] Internal compiler error on boost mpl test/apply.cpp
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Nov 2006 09:51:05 -0000
- Subject: [Bug c++/28088] [4.1 Regression] Internal compiler error on boost mpl test/apply.cpp
- References: <bug-28088-12394@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #15 from pinskia at gcc dot gnu dot org 2006-11-08 09:51 -------
Another testcase, this one from some other code that uses boost:
template< typename T> struct has_begin {static const bool value =0;};
template<bool a> struct sequence_tag_impl{};
template< typename Sequence>
struct sequence_tag : sequence_tag_impl<has_begin<Sequence>::value >{};
template<typename T>struct lambda{};
template<template< typename P1 > class F, typename T1 >struct lambda<F< T1 >
>{};
template< typename Tag >struct size_impl;
template<typename Tag, long Arity = size_impl< typename sequence_tag<Tag>::type
>::value>
struct basic_expr{};
int main()
{
lambda<basic_expr<short, 2> > a;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28088