diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-01-31 00:28:53 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-01-31 00:28:53 +0100 |
commit | 8b44f8ec4b20bf22350e484bb49303a36085b0d5 (patch) | |
tree | a61191a9badffefd029c7e7e1138b82d4c93e8e1 /gcc/cp/lambda.c | |
parent | 9c5365902aaee9033ed781bfc5e8147060e5b130 (diff) | |
download | gcc-8b44f8ec4b20bf22350e484bb49303a36085b0d5.zip gcc-8b44f8ec4b20bf22350e484bb49303a36085b0d5.tar.gz gcc-8b44f8ec4b20bf22350e484bb49303a36085b0d5.tar.bz2 |
re PR c++/88988 (ICE: Segmentation fault (in lookup_name_real_1))
PR c++/88988
* lambda.c (is_capture_proxy): Don't return true for
DECL_OMP_PRIVATIZED_MEMBER artificial vars.
* testsuite/libgomp.c++/pr88988.C: New test.
From-SVN: r268407
Diffstat (limited to 'gcc/cp/lambda.c')
-rw-r--r-- | gcc/cp/lambda.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/lambda.c b/gcc/cp/lambda.c index bc64a41..4b7a358 100644 --- a/gcc/cp/lambda.c +++ b/gcc/cp/lambda.c @@ -263,6 +263,9 @@ is_capture_proxy (tree decl) && !DECL_ANON_UNION_VAR_P (decl) && !DECL_DECOMPOSITION_P (decl) && !DECL_FNAME_P (decl) + && !(DECL_ARTIFICIAL (decl) + && DECL_LANG_SPECIFIC (decl) + && DECL_OMP_PRIVATIZED_MEMBER (decl)) && LAMBDA_FUNCTION_P (DECL_CONTEXT (decl))); } |