This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]