diff options
author | Jakub Jelinek <jakub@redhat.com> | 2020-06-09 08:39:36 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2020-06-09 08:39:36 +0200 |
commit | d6dbb71e468d0db561cc9eca99eeaca1efb81c11 (patch) | |
tree | 2293a295ea3c2d2985db643e2eecf968927de0ba /gcc/cppbuiltin.c | |
parent | 653ab081391e9e7e38b304f3234323c93693d40c (diff) | |
download | gcc-d6dbb71e468d0db561cc9eca99eeaca1efb81c11.zip gcc-d6dbb71e468d0db561cc9eca99eeaca1efb81c11.tar.gz gcc-d6dbb71e468d0db561cc9eca99eeaca1efb81c11.tar.bz2 |
c-family: Fix up MEM_REF printing [PR95580]
The C FE in the MEM_REF printing ICEs if the type of the first argument
(which due to useless pointer conversions can be an arbitrary type) is a
pointer to an incomplete type. The code just wants to avoid printing a cast
if it is a pointer to single byte elements.
2020-06-09 Jakub Jelinek <jakub@redhat.com>
PR c/95580
* c-pretty-print.c (c_pretty_printer::unary_expression): Handle the
case when MEM_REF's first argument has type pointer to incomplete type.
* gcc.dg/pr95580.c: New test.
Diffstat (limited to 'gcc/cppbuiltin.c')
0 files changed, 0 insertions, 0 deletions