re PR c++/89488 (ICE in merge_exception_specifiers, at cp/typeck2.c:2395)
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 27 Feb 2019 10:02:23 +0000 (10:02 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 27 Feb 2019 10:02:23 +0000 (10:02 +0000)
commit65b309f7a50600adc8d0ae4dd8f62149875dc120
treeb9f5e6de9b53bfd1b62b774be877aa9f9bb5c263
parentf86624d85f937e03110eb044e438d8316d860501
re PR c++/89488 (ICE in merge_exception_specifiers, at cp/typeck2.c:2395)

/cp
2019-02-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/89488
* method.c (process_subob_fn): When maybe_instantiate_noexcept
returns false don't call merge_exception_specifiers.

/testsuite
2019-02-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/89488
* g++.dg/cpp0x/nsdmi15.C: New.

/cp
2019-02-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/88987
* parser.c (cp_parser_noexcept_specification_opt): Return NULL_TREE
for a non-constant parsed expression.

/testsuite
2019-02-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/88987
* g++.dg/cpp0x/pr88987.C: New.

From-SVN: r269245
gcc/cp/ChangeLog
gcc/cp/method.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/nsdmi15.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/pr88987.C [new file with mode: 0644]