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 preprocessor/7263 - Avoid pedantic warnings on system headers macro tokens


On 05/10/2012 01:53 PM, Dodji Seketeli wrote:
+ if (found_decl_spec && ds != ds_last)

Do we still need found_decl_spec?


+	  if (decl_spec_seq_has_spec_p (&decl_specifiers, ds_inline))
 	    permerror (input_location, "explicit instantiation shall not use"
 		       " %<inline%> specifier");
-	  if (decl_specifiers.specs[(int)ds_constexpr])
+	  if (decl_spec_seq_has_spec_p (&decl_specifiers, ds_constexpr))
 	    permerror (input_location, "explicit instantiation shall not use"

These can use the specifier locations, right?


Jason


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