------- Comment #3 from pinskia at gcc dot gnu dot org  2006-06-19 23:37 -------
Reduced testcase, this might be already fixed in 4.1.2 but I have not tried:
template< typename T > struct type_wrapper{};
int arity_helper(...);
template<      template< typename P1 > class F, typename T1    >
int  arity_helper(type_wrapper< F<T1> >);
template< typename F >
struct template_arity
{
    static const int value = sizeof(arity_helper(type_wrapper<F>() ));
};
template<
      typename T, int t =  template_arity<T>::value
    >
struct lambda;
typedef lambda<  lambda<int> > t;


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |4.1.1
      Known to work|                            |4.2.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28088

Reply via email to