c/104505 - ICE with internal function call in diagnostic expression
authorRichard Biener <rguenther@suse.de>
Mon, 14 Feb 2022 08:29:20 +0000 (09:29 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 14 Feb 2022 08:31:17 +0000 (09:31 +0100)
commitf7e26913187ce0ed35e340c4fd14104bbcd1932e
treeed5f56554192bcf897860116ef41be7309c65c75
parent3f10e0d50b5e3b3f64bc9a1a29177518d5f4468d
c/104505 - ICE with internal function call in diagnostic expression

The following handles internal function calls similar to how the
C++ frontend does, avoiding ICEing on those.

2022-02-14  Richard Biener  <rguenther@suse.de>

PR c/104505
gcc/c-family/
* c-pretty-print.cc (c_pretty_printer::postfix_expression): Handle
internal function calls.

gcc/testsuite/
* c-c++-common/pr104505.c: New testcase.
gcc/c-family/c-pretty-print.cc
gcc/testsuite/c-c++-common/pr104505.c [new file with mode: 0644]