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]

[C++ Patch/RFC] PR 58753 & 58930


Hi,

I'm trying to make progress on these two issues, which seem closely related to me. Both only happen for NSDMIs in template classes, thus when cp_parser_late_parse_one_default_arg sees processing_template_decl != 0 and doesn't call digest_init_flags directly, thus produces a CONSTRUCTOR (vs, eg, a TARGET_EXPR). Then, I think that the problem - thus the incorrect diagnostic and the rejection - must be in perform_member_init, which doesn't early handle such CONSTRUCTOR with DIRECT_LIST_INIT_P true, thus doesn't call digest_init. The below passes testing and fixes all the snippets we have got for those two PRs.

Thanks!
Paolo.

////////////////////

Attachment: patch_58753_58930
Description: Text document


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