diff options
author | Mark Wielaard <mark@klomp.org> | 2020-05-24 18:01:51 +0200 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:10:04 -0300 |
commit | c6cd10aaa60a07427ee0cf4e1224894b29fe394c (patch) | |
tree | 0e84c170717dfaee570bf540a28903425bda965c /gcc/cp/constexpr.c | |
parent | 601c68c6112d49fe615872a2cba5cb8c3eff0bc5 (diff) | |
download | gcc-c6cd10aaa60a07427ee0cf4e1224894b29fe394c.zip gcc-c6cd10aaa60a07427ee0cf4e1224894b29fe394c.tar.gz gcc-c6cd10aaa60a07427ee0cf4e1224894b29fe394c.tar.bz2 |
diagnostics: Add function call parens matching to c_parser.
The C++ parser already tracks function call parens matching, but the C
parser doesn't. This adds the same functionality to the C parser and adds
a testcase showing the C++ and C parser matching function call parens
in an error message.
gcc/c/ChangeLog:
* c-parser.c (c_parser_postfix_expression_after_primary): Add
scope with matching_parens after CPP_OPEN_PAREN.
gcc/testsuite/ChangeLog:
* c-c++-common/missing-close-func-paren.c: New test.
Diffstat (limited to 'gcc/cp/constexpr.c')
0 files changed, 0 insertions, 0 deletions