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] PR 68754 ("Explicitly defaulted constexpr assignment operator fails to compile")


Hi,

the main issue, a C++14 rejects-valid, is already fixed in trunk, and a while ago I added a testcase for that. However, Andrew noticed that in C++11 mode we emit redundant and also a bit puzzling diagnostic (ending with one of those annoying "... because:" and nothing after which unfortunately we emit in some other cases too). Comparing to, eg, clang too, I think we can make progress by simply returning early after the first hard error. Also, as an additional tweak, we might replace the second error with an inform, per the usual scheme. Tested x86_64-linux.

Thanks, Paolo.

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

Attachment: CL_68754_2
Description: Text document

Attachment: patch_68754_2
Description: Text document


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