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)


Jason Merrill wrote:
> OK.

Actually, I don't think this is a good solution.

I would like to know why we're looking at the body of this CONSTRUCTOR
at all, since such a thing is not an integral constant-expression.  (The
comment above value_dependent_expression_p says that EXPRESSION is
already known to be a constant expression.)  The intent is that this
routine only be called when the parser has already identified the
expression as a constant-expression.

-- 
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]