[Bug c++/85363] Throwing exception from member constructor (brace initializer vs initializer list)

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

[Bug c++/85363] Throwing exception from member constructor (brace initializer vs initializer list)

2021-08-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85363 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |9.0

[Bug c++/85363] Throwing exception from member constructor (brace initializer vs initializer list)

2020-04-16 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85363 Jonathan Wakely changed: What|Removed |Added CC||stephane.zimmermann@trust-i

[Bug c++/85363] Throwing exception from member constructor (brace initializer vs initializer list)

2018-05-16 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85363 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/85363] Throwing exception from member constructor (brace initializer vs initializer list)

2018-05-16 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85363 --- Comment #7 from Marek Polacek --- Author: mpolacek Date: Wed May 16 20:37:45 2018 New Revision: 260300 URL: https://gcc.gnu.org/viewcvs?rev=260300=gcc=rev Log: PR c++/85363 * call.c (set_flags_from_callee): Handle

[Bug c++/85363] Throwing exception from member constructor (brace initializer vs initializer list)

2018-05-16 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85363 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/85363] Throwing exception from member constructor (brace initializer vs initializer list)

2018-05-10 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85363 --- Comment #6 from Marek Polacek --- P::P () is marked as TREE_NOTHROW because when we're processing X::X ((struct X *) <<< Unknown tree: void_cst >>>, 20) (which can throw) in set_flags_from_callee, cfun is null in this case, so we don't mark

[Bug c++/85363] Throwing exception from member constructor (brace initializer vs initializer list)

2018-05-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85363 --- Comment #5 from Marek Polacek --- In C++11, .eh optimizes out the catch, so the exception is never caught. That is because lower_catch doesn't think that the region may throw (eh_region_may_contain_throw). After further poking it seems the

[Bug c++/85363] Throwing exception from member constructor (brace initializer vs initializer list)

2018-04-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85363 --- Comment #4 from Jonathan Wakely --- That implemented the rule that aggregates can't have NSDMIs. It started working in C++14 mode with r216750, which implements the C++14 rule that aggregates _can_ have NSDMIs. So the problem seems to be

[Bug c++/85363] Throwing exception from member constructor (brace initializer vs initializer list)

2018-04-12 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85363 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/85363] Throwing exception from member constructor (brace initializer vs initializer list)

2018-04-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85363 --- Comment #2 from Jonathan Wakely --- In C++11 mode the compiler emits a constructor for P: ;; Function constexpr P::P() (null) ;; enabled by -tree-original {

[Bug c++/85363] Throwing exception from member constructor (brace initializer vs initializer list)

2018-04-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85363 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|