https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90397
--- Comment #8 from Jonathan Wakely ---
G++ allowed it because the mismatch was in a system header. If you use
-Wsystem-headers then GCC 9.1 gives a warning about it:
/xhome/jwakely/gcc/9.1.0/include/c++/9.1.0/variant: In instantiation of 'class
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90397
Evgeniy Dushistov changed:
What|Removed |Added
CC||dushistov at mail dot ru
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90397
Jonathan Wakely changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90397
--- Comment #5 from Jonathan Wakely ---
Author: redi
Date: Fri May 10 22:23:10 2019
New Revision: 271083
URL: https://gcc.gnu.org/viewcvs?rev=271083&root=gcc&view=rev
Log:
PR libstdc++/90397 fix std::variant friend declaration
Clang diagnoses i
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90397
--- Comment #4 from Jonathan Wakely ---
Author: redi
Date: Fri May 10 21:41:19 2019
New Revision: 271079
URL: https://gcc.gnu.org/viewcvs?rev=271079&root=gcc&view=rev
Log:
PR libstdc++/90397 fix std::variant friend declarations
Clang diagnoses
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90397
--- Comment #3 from philip.salvaggio at mac dot com ---
Yep! I added the noexcept on there on my local version and that also resolved
the issue.