re PR c++/85363 (Throwing exception from member constructor (brace initializer vs...
authorMarek Polacek <polacek@redhat.com>
Wed, 16 May 2018 20:37:45 +0000 (20:37 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 16 May 2018 20:37:45 +0000 (20:37 +0000)
commit0932d398ef91373c74d8ad08f26f484206bc8fc9
treef07207965ef5224f6862314f5e9d2f16fbee6150
parent110fb19f6c6a4a9dfb9cfe00d3295cccf5b00507
re PR c++/85363 (Throwing exception from member constructor (brace initializer vs initializer list))

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.

From-SVN: r260300
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/initlist-throw1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/initlist-throw2.C [new file with mode: 0644]