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] |
On Fri, Mar 11, 2011 at 6:51 AM, Jason Merrill<jason@redhat.com> wrote:How about just calling maybe_constant_value call after the fold_non_dependent_expr call in cp_parser_parenthesized_expression_list?
Well, I first tried something like this, but the key problem is the *non_dependent* part, so it does nothing if the expression involves templates:
BTW, a general question, why isn't there a call to maybe_constant_value just at the end of fold_non_dependent_expr?
My patch calls maybe_constant_value after taking away any dependent expression (cplus_decl_attributes does all the job).
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |