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;
