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: C++ PATCH for c++/91673 - ICE with noexcept in alias-declaration


On 9/10/19 1:25 PM, Marek Polacek wrote:
@@ -21870,10 +21873,16 @@ cp_parser_type_id_1 (cp_parser *parser, cp_parser_flags flags,
/* There might or might not be an abstract declarator. */
   cp_parser_parse_tentatively (parser);
+  /* Reset the flags, but remember if we should perform delayed parsing
+     of noexcept-specifiers.  */
+  if (flags & CP_PARSER_FLAGS_DELAY_NOEXCEPT)
+    flags = CP_PARSER_FLAGS_DELAY_NOEXCEPT;
+  else
+    flags = CP_PARSER_FLAGS_NONE;

Do we want/need to pass the flag through here? I would think that we don't, for the same reason we don't want to delay parsing in an alias.

OK without this hunk.

Jason


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