https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80683
Andrew Pinski changed:
What|Removed |Added
Resolution|--- |DUPLICATE
Status|NEW
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80683
--- Comment #5 from Xi Ruoyao ---
The issue is in cp/method.c:
/* If that user-written default constructor would satisfy the
requirements of a constexpr constructor (7.1.5), the
implicitly-defined default constructor is constexpr.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80683
Jonathan Wakely changed:
What|Removed |Added
Status|RESOLVED|NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80683
--- Comment #3 from Xi Ruoyao ---
For debug purpose, compiled this code in C++98 mode
(non-static data member initializers is a GNU extension in C++98 and would
be warned). The result is still buggy. Defaulted B::B() is marked noexcept.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80683
--- Comment #2 from Xi Ruoyao ---
I don't think it's PR66139.
In PR66139, the exception is caught, but some destructors aren't called.
In this PR, the exception is not caught at all.
For this PR, the problem is:
1) GCC created "constexpr B::B
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80683
Markus Trippelsdorf changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
CC|