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: [PATCH] Fix PR c++/36408


Jason Merrill wrote:
The problem is that tsubsting an empty STATEMENT_LIST returns NULL_TREE, when it ought to return void_zero_node.

Actually, that isn't it either. The problem is that we're tsubsting the STMT_EXPR into a STATEMENT_LIST too early, in fold_non_dependent_expr. I suspect that this may break other uses of statement-expressions as initializers in templates, too.


Jason


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