------- Comment #5 from mark at codesourcery dot com 2006-09-01 22:30 ------- Subject: Re: [4.1/4.2 regression] Template specialization with array rejected
pinskia at gcc dot gnu dot org wrote: > ------- Comment #4 from pinskia at gcc dot gnu dot org 2006-09-01 22:24 > ------- > (In reply to comment #3) >> There shouldn't be a NON_LVALUE_EXPR here at all; non-type template >> parameters >> are lvalues only if they have reference type. > > fold produces it because maybe_lvalue_p returns true for Language specific > trees > and fold is folding (template_parameter+1)-1. So, that's what should be fixed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28886