[C++ PATCH] Handle CONSTRUCTOR in value_dependent_expression_p (PR c++/29570)

Mark Mitchell mark@codesourcery.com
Mon Nov 20 21:03:00 GMT 2006

Jakub Jelinek wrote:

> This is the [dcl.init]/13 case, scalar initialized with { val }
> which is equivalent to val initializer.  And, val in this case
> (A<N>::i) is constant expression.
> Perhaps it is enough just to check for a single elt CONSTRUCTOR
> in cp_finish_decl and see if it is value_dependent_expression_p.

Yes, I think that would be better.


Mark Mitchell
(650) 331-3385 x713

More information about the Gcc-patches mailing list