This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR c++/69139


On 02/06/2016 05:25 PM, Adam Butcher wrote:
+		  if (cp_lexer_next_token_is (parser->lexer, CPP_DEREF))
+		    have_trailing_return_fn_decl = true;
+		  else if ((cp_lexer_consume_token (parser->lexer)->type
+			    == CPP_OPEN_PAREN)
+			   && (cp_parser_skip_to_closing_parenthesis
+			       (parser,
+			        /*recovering*/false,
+			        /*or_comma*/false,
+			        /*consume_paren*/true)))
+		    have_trailing_return_fn_decl
+		      = cp_lexer_next_token_is (parser->lexer, CPP_DEREF);

Let's reorganize this so you only check CPP_DEREF in one place; this is more important now that you've added more processing to only one of them in your followup patch.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]