[Bug c++/80683] Exceptions don't propagate through default member initializer

2021-08-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80683 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug c++/80683] Exceptions don't propagate through default member initializer

2017-05-11 Thread ryxi at stu dot xidian.edu.cn
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.

[Bug c++/80683] Exceptions don't propagate through default member initializer

2017-05-11 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80683 Jonathan Wakely changed: What|Removed |Added Status|RESOLVED|NEW Last reconfirmed|

[Bug c++/80683] Exceptions don't propagate through default member initializer

2017-05-10 Thread ryxi at stu dot xidian.edu.cn
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.

[Bug c++/80683] Exceptions don't propagate through default member initializer

2017-05-10 Thread ryxi at stu dot xidian.edu.cn
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

[Bug c++/80683] Exceptions don't propagate through default member initializer

2017-05-10 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80683 Markus Trippelsdorf changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|