This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Bug 52869 - [DR 1207] "this" not being allowed in noexcept clauses
- From: Umesh Kalappa <umesh dot kalappa0 at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 13 Nov 2018 11:49:55 +0530
- Subject: Bug 52869 - [DR 1207] "this" not being allowed in noexcept clauses
Hi All,
the following patch fix the subjected issue
Index: gcc/cp/parser.c
===================================================================
--- gcc/cp/parser.c (revision 266026)
+++ gcc/cp/parser.c (working copy)
@@ -24615,6 +24615,8 @@
{
tree expr;
cp_lexer_consume_token (parser->lexer);
+
+ inject_this_parameter (current_class_type, TYPE_UNQUALIFIED);
if (cp_lexer_peek_token (parser->lexer)->type == CPP_OPEN_PAREN)
{
ok to commit along the testcase with changelog update ?
Thank you
~Umesh