re PR c++/71464 (ICE on invalid code (with redeclared constructor) at -Os: Segmentati...
authorPaolo Carlini <paolo.carlini@oracle.com>
Sat, 3 Mar 2018 17:48:23 +0000 (17:48 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 3 Mar 2018 17:48:23 +0000 (17:48 +0000)
commitc94a3f9f6580097dfc9279132a312780e5fa5405
treeb1618f991ce2c75dc596dcf5b77a0f893d66894c
parent6855fa2131d6e9fbe147cad5121d9b2ac9800921
re PR c++/71464 (ICE on invalid code (with redeclared constructor) at -Os: Segmentation fault)

/cp
2018-03-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/71464
* optimize.c (maybe_thunk_body): Bail out immediately if either
fns[0] or fns[1] is null.

/testsuite
2018-03-03  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/71464
* g++.dg/torture/pr71464.C: New.

From-SVN: r258216
gcc/cp/ChangeLog
gcc/cp/optimize.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr71464.C [new file with mode: 0644]