re PR c/81779 (bool define from stdbool.h suppresses -Wdeclaration-after-statement)
authorMarek Polacek <polacek@redhat.com>
Wed, 31 Jan 2018 22:12:46 +0000 (22:12 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 31 Jan 2018 22:12:46 +0000 (22:12 +0000)
commit2be4dfcbc119f1f3d68dc20800ade2bf4cf5d9ae
treeb9d31a9d0204932d86a56ed970cb6c597398180a
parentc677f80adb4a075f3549a2aedde4ae9fdcb847c0
re PR c/81779 (bool define from stdbool.h suppresses -Wdeclaration-after-statement)

PR c/81779
* c-parser.c (c_parser_compound_statement_nostart): Call
expansion_point_location_if_in_system_header.

* gcc.dg/pr81779.c: New test.

From-SVN: r257271
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr81779.c [new file with mode: 0644]