[Bug c++/89513] constexpr functions with function try block shouldn't be accepted at least with -pedantic in -std=c++{11,14,17} modes
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 27 13:46:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89513
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 45837
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45837&action=edit
gcc9-pr89513.patch
Untested fix. Unless we want to go ahead and implement P1002R1 right now, of
course. And if we do, the question is if we should just accept it everywhere
with a pedwarn.
More information about the Gcc-bugs
mailing list