From patchwork Sun Nov 11 04:10:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Obj-C++] Found a small paste-o in parser.c? Date: Sat, 10 Nov 2012 18:10:10 -0000 From: Ed Smith-Rowland <3dw4rd@verizon.net> X-Patchwork-Id: 198236 Message-Id: <509F2522.9040803@verizon.net> To: gcc-patches , Jason Merrill I found this suspicious looking line in cp/parser.c () while looking at __thread and thread_local. Look at the patterns of the if blocks above the line in question to verify. Built and tested on x86_64-linux. Ed 2012-11-11 Ed Smith-Rowland <3dw4rd@verizon.net> * parser.c (cp_parser_objc_class_ivars): Index declspecs.locations by ds_typedef rather than ds_thread. 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;