Index declspecs.locations by ds_typedef rather than ds_thread.
authorEd Smith-Rowland <3dw4rd@verizon.net>
Mon, 12 Nov 2012 05:35:05 +0000 (05:35 +0000)
committerEdward Smith-Rowland <emsr@gcc.gnu.org>
Mon, 12 Nov 2012 05:35:05 +0000 (05:35 +0000)
From-SVN: r193426

gcc/cp/ChangeLog
gcc/cp/parser.c

index f9bc3bd47d535d38913105dd34b61fd56169e7a8..cb861cb66744dbf80a93c698e4072b44c35003cc 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
 
        PR c++/54413
index f2642aba33a55c7d1f85d4726839643013de3395..7107134639e27796bd11304fd306afc798edb67d 100644 (file)
@@ -24650,7 +24650,7 @@ cp_parser_objc_class_ivars (cp_parser* parser)
       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;