This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28879] [4.0/4.1/4.2/4.3 regression] ICE with VLA in template function
- From: "mark at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Feb 2008 18:18:36 -0000
- Subject: [Bug c++/28879] [4.0/4.1/4.2/4.3 regression] ICE with VLA in template function
- References: <bug-28879-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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