From: Ed Smith-Rowland <3dw4rd@verizon.net> Date: Mon, 12 Nov 2012 05:35:05 +0000 (+0000) Subject: Index declspecs.locations by ds_typedef rather than ds_thread. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f27f1e98957a6b98c24a86a01e995e9d638c3258;p=gcc.git Index declspecs.locations by ds_typedef rather than ds_thread. From-SVN: r193426 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index f9bc3bd47d5..cb861cb6674 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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 diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index f2642aba33a..7107134639e 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -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;