public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Bug 52869 - [DR 1207] "this" not being allowed in noexcept clauses
@ 2018-11-13  6:20 Umesh Kalappa
  2018-11-13 15:40 ` Marek Polacek
  0 siblings, 1 reply; 14+ messages in thread
From: Umesh Kalappa @ 2018-11-13  6:20 UTC (permalink / raw)
  To: gcc-patches

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2018-11-16 21:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-13  6:20 Bug 52869 - [DR 1207] "this" not being allowed in noexcept clauses Umesh Kalappa
2018-11-13 15:40 ` Marek Polacek
2018-11-13 21:25   ` Jason Merrill
2018-11-14 11:49     ` Umesh Kalappa
2018-11-14 13:23       ` Umesh Kalappa
2018-11-14 14:33       ` Marek Polacek
2018-11-14 16:25         ` Umesh Kalappa
2018-11-14 18:53           ` Marek Polacek
2018-11-15  8:56             ` Umesh Kalappa
2018-11-15 15:56               ` Marek Polacek
2018-11-15 15:59                 ` Marek Polacek
2018-11-16  6:53                 ` Umesh Kalappa
2018-11-16 18:18                   ` Marek Polacek
2018-11-16 21:55                     ` Jason Merrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).