re PR c++/79899 (ICE in ctor_omit_inherited_parms at gcc/cp/method.c:576 on ARM target)
authorJakub Jelinek <jakub@redhat.com>
Fri, 10 Mar 2017 15:33:04 +0000 (16:33 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 10 Mar 2017 15:33:04 +0000 (16:33 +0100)
commite260b0a7dda804cd2bd0beee477d47ce9c01d4c0
tree9961619e7d8b0c379157514d3bc89a496171ee28
parentda0ced6eb890fbb1cbe1da7bc620dc6ef9f13246
re PR c++/79899 (ICE in ctor_omit_inherited_parms at gcc/cp/method.c:576 on ARM target)

PR c++/79899
* optimize.c (maybe_thunk_body): Don't ICE if fns[0] is NULL.
Use XALLOCAVEC macro.

* g++.dg/other/friend7.C: New test.

From-SVN: r246038
gcc/cp/ChangeLog
gcc/cp/optimize.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/friend7.C [new file with mode: 0644]