diff options
author | Marek Polacek <polacek@redhat.com> | 2019-09-10 23:22:37 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2019-09-10 23:22:37 +0000 |
commit | 480c18e16fd69998266850b804024a7559f1bc70 (patch) | |
tree | 04ea0ec010a6b86907503414d1c6839a48d20fbb /gcc/tree.h | |
parent | d85569f63db86e656ecb79b81c74a906f27bf509 (diff) | |
download | gcc-480c18e16fd69998266850b804024a7559f1bc70.zip gcc-480c18e16fd69998266850b804024a7559f1bc70.tar.gz gcc-480c18e16fd69998266850b804024a7559f1bc70.tar.bz2 |
PR c++/91673 - ICE with noexcept in alias-declaration.
* parser.c (CP_PARSER_FLAGS_DELAY_NOEXCEPT): New parser flag.
(cp_parser_lambda_declarator_opt): Pass CP_PARSER_FLAGS_NONE to
cp_parser_exception_specification_opt.
(cp_parser_direct_declarator): Adjust a call to
cp_parser_exception_specification_opt.
(cp_parser_member_declaration): Pass CP_PARSER_FLAGS_DELAY_NOEXCEPT
to cp_parser_declarator if not processing a friend or typedef
declaration.
(cp_parser_late_noexcept_specifier): Adjust a call to
cp_parser_noexcept_specification_opt.
(cp_parser_noexcept_specification_opt): New parameter for parser flags,
drop the FRIEND_P parameter. Use the new parameter.
(cp_parser_exception_specification_opt): Likewise.
(cp_parser_transaction): Adjust a call to
cp_parser_noexcept_specification_opt.
(cp_parser_transaction_expression): Likewise.
* g++.dg/cpp1z/using7.C: New test.
* g++.dg/cpp1z/using8.C: New test.
From-SVN: r275617
Diffstat (limited to 'gcc/tree.h')
0 files changed, 0 insertions, 0 deletions