[Bug c++/85363] Throwing exception from member constructor (brace initializer vs initializer list)
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 16 20:38:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85363
--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed May 16 20:37:45 2018
New Revision: 260300
URL: https://gcc.gnu.org/viewcvs?rev=260300&root=gcc&view=rev
Log:
PR c++/85363
* call.c (set_flags_from_callee): Handle AGGR_INIT_EXPRs too.
* tree.c (bot_manip): Call set_flags_from_callee for
AGGR_INIT_EXPRs too.
* g++.dg/cpp0x/initlist-throw1.C: New test.
* g++.dg/cpp0x/initlist-throw2.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/initlist-throw1.C
trunk/gcc/testsuite/g++.dg/cpp0x/initlist-throw2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/cp/tree.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list