re PR ipa/88586 (ICE: Segmentation fault (in free_lang_data_in_decl))
authorJakub Jelinek <jakub@redhat.com>
Sat, 29 Dec 2018 10:53:36 +0000 (11:53 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 29 Dec 2018 10:53:36 +0000 (11:53 +0100)
commita4983b7ad84e96ef8914e1d027d7b33f7fb5c4a3
treec8e09b21dc642ed014458527c995efb184fca84e
parent2fda71537b379f16b09ca38a2020ff51ca1e99bf
re PR ipa/88586 (ICE: Segmentation fault (in free_lang_data_in_decl))

PR ipa/88586
* omp-low.c (lower_omp_task_reductions): Set DECL_CONTEXT on field
and ifield.  Update TYPE_ALIGN from alignment of field, ifield or
bfield.

* g++.dg/gomp/pr88586.C: New test.

From-SVN: r267461
gcc/ChangeLog
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr88586.C [new file with mode: 0644]