diff options
author | Marek Polacek <polacek@redhat.com> | 2017-09-13 16:46:17 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2017-09-13 16:46:17 +0000 |
commit | 267bbb6fd17860dd09e69493ae031cc3e977301d (patch) | |
tree | 0b070c170988ef3ec4e6c0149971bd07f7d05be5 /gcc/c/ChangeLog | |
parent | 72ace300a2519fdd19617694dfc8c89dbfb96163 (diff) | |
download | gcc-267bbb6fd17860dd09e69493ae031cc3e977301d.zip gcc-267bbb6fd17860dd09e69493ae031cc3e977301d.tar.gz gcc-267bbb6fd17860dd09e69493ae031cc3e977301d.tar.bz2 |
re PR c/82167 (Segmentation fault when dereferencing the address of an array argument)
PR c/82167
* c-typeck.c (c_expr_sizeof_expr): Use the type of expr.value rather
than expr.original_type.
* gcc.dg/pr82167.c: New test.
From-SVN: r252372
Diffstat (limited to 'gcc/c/ChangeLog')
-rw-r--r-- | gcc/c/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index d55b5ac..957daeb 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,9 @@ +2017-09-13 Marek Polacek <polacek@redhat.com> + + PR c/82167 + * c-typeck.c (c_expr_sizeof_expr): Use the type of expr.value rather + than expr.original_type. + 2017-09-12 Nathan Sidwell <nathan@acm.org> * c-decl.c (field_decl_cmp, resort_data, resort_field_decl_cmp, |