Patchwork [Obj-C++] Found a small paste-o in parser.c?

login
register
mail settings
Submitter Ed Smith-Rowland
Date Nov. 12, 2012, 5:36 a.m.
Message ID <50A08AD8.2010209@verizon.net>
Download mbox | patch
Permalink /patch/198320/
State New
Headers show

Comments

Ed Smith-Rowland - Nov. 12, 2012, 5:36 a.m.
On 11/12/2012 12:05 AM, Jason Merrill wrote:
> OK.
>
> Jason
>
Committed.
2012-11-12  Ed Smith-Rowland  <3dw4rd@verizon.net>

	* parser.c (cp_parser_objc_class_ivars):
	Index declspecs.locations by ds_typedef rather than ds_thread.

Patch

Index: parser.c
===================================================================
--- parser.c	(revision 193380)
+++ parser.c	(working copy)
@@ -24650,7 +24650,7 @@ 
       if (decl_spec_seq_has_spec_p (&declspecs, ds_typedef))
 	{
 	  cp_parser_error (parser, "invalid type for instance variable");
-	  declspecs.locations[ds_thread] = 0;
+	  declspecs.locations[ds_typedef] = 0;
 	}
 
       prefix_attributes = declspecs.attributes;