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 RFA: Permit attributes on labels in C++


Ian Lance Taylor wrote:
Note that I changed is_late_template_attribute to mark the unused
attribute on a label as applying at template instantiation time.

I don't think that's necessary; the change to re-apply attributes in tsubst_expr does the trick.


+	  if (!cp_parser_require (parser, CPP_SEMICOLON, "%<;%>"))
+	    gcc_unreachable ();

This consumes the semicolon as part of the label, which breaks


{ label: __attribute ((unused)) ; }

Jason


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