diff options
author | Jakub Jelinek <jakub@redhat.com> | 2022-02-17 10:29:06 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2022-02-17 10:29:06 +0100 |
commit | f99ad11af953568e1a01e4f4fe31cba0f11879a5 (patch) | |
tree | 965f0a884111ea38f707392d8aebc25e98a8a53e /gcc/go | |
parent | 550cabd00238a8e74783ba6ad05a7580d074aabd (diff) | |
download | gcc-f99ad11af953568e1a01e4f4fe31cba0f11879a5.zip gcc-f99ad11af953568e1a01e4f4fe31cba0f11879a5.tar.gz gcc-f99ad11af953568e1a01e4f4fe31cba0f11879a5.tar.bz2 |
openmp: Ensure proper diagnostics for -> in map/to/from clauses [PR104532]
The following patch uses the functions normal CPP_DEREF parsing uses,
i.e. convert_lvalue_to_rvalue and build_indirect_ref, instead of
blindly calling build_simple_mem_ref, so that if the variable does not
have correct type, we properly diagnose it instead of ICEing on it.
2022-02-17 Jakub Jelinek <jakub@redhat.com>
PR c/104532
* c-parser.cc (c_parser_omp_variable_list): For CPP_DEREF, use
convert_lvalue_to_rvalue and build_indirect_ref instead of
build_simple_mem_ref.
* gcc.dg/gomp/pr104532.c: New test.
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions