re PR c++/89875 (invalid typeof reference to a member of an incomplete struct accepte...
authorPaolo Carlini <paolo@gcc.gnu.org>
Wed, 29 May 2019 17:30:36 +0000 (17:30 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 29 May 2019 17:30:36 +0000 (17:30 +0000)
commit824e57cbf4115db5dfe90ed49ff9828cbcc14b02
tree812a9aa98261dbc3fcc564aae8e28a74a2afaf48
parent65539b1ef311a804e2cc651a58591f79aa6f6638
re PR c++/89875 (invalid typeof reference to a member of an incomplete struct accepted at function scope)

/cp
2019-05-29  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/89875
* parser.c (cp_parser_sizeof_operand): When the type-id production
did not work out commit to the tentative parse.

/testsuite
2019-05-29  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/89875
* g++.dg/cpp0x/decltype-pr66548.C: Remove xfail.
* g++.dg/template/sizeof-template-argument.C: Adjust expected error.

From-SVN: r271746
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/decltype-pr66548.C
gcc/testsuite/g++.dg/template/sizeof-template-argument.C