gimple-parser.c (c_parser_gimple_postfix_expression): Handle _Literal (char *) &...
authorRichard Biener <rguenther@suse.de>
Mon, 1 Jul 2019 13:36:05 +0000 (13:36 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 1 Jul 2019 13:36:05 +0000 (13:36 +0000)
commit69b5279e977593d656906288316ee03a8bf79c6a
treea5c20bc3e5adfbb743b300b6184a22a317bc5605
parent0c9c281da4651e8725429ff6709b48e3b2e62463
gimple-parser.c (c_parser_gimple_postfix_expression): Handle _Literal (char *) &"foo" for address literals pointing to STRING_CSTs.

2019-07-01  Richard Biener  <rguenther@suse.de>

c/
* gimple-parser.c (c_parser_gimple_postfix_expression): Handle
_Literal (char *) &"foo" for address literals pointing to
STRING_CSTs.

* gcc.dg/gimplefe-42.c: New testcase.

From-SVN: r272872
gcc/c/ChangeLog
gcc/c/gimple-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gimplefe-42.c [new file with mode: 0644]