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] |
Substituting into the fold-expression was producing an EXPR_PACK_EXPANSION, but it would be better to keep it as a fold-expression. tsubst_unary_left_fold et al try to do this, but weren't recognizing the case where tsubst_pack_expansion returns a TREE_VEC containing a single pack expansion. In that case, let's just return the pack expansion without the TREE_VEC, as we do earlier in tsubst_pack_expansion for similar situations. Tested x86_64-pc-linux-gnu, applying to trunk and 6.
Attachment:
72415.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |