------- Comment #8 from mark at codesourcery dot com 2008-02-13 18:18 ------- Subject: Re: [4.0/4.1/4.2/4.3 regression] ICE with VLA in template function
jason at gcc dot gnu dot org wrote: > Either value_dependent_expression_p needs to handle arbitrary VLA bounds, or > we > need to avoid calling it if the array bound is not a constant-expression. Exactly so. My intent when writing v_d_e_p was that it only be called with constant-expressions. (The whole idea of value-dependent expressions in the standard is predicated on them being constant-expressions; the goal is to partition constant-expressions which whose value is known before template substitution from those whose values is not known until later.) So, I suggest that we take the second approach. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28879