aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Smith-Rowland <3dw4rd@verizon.net>2012-11-12 05:35:05 +0000
committerEdward Smith-Rowland <emsr@gcc.gnu.org>2012-11-12 05:35:05 +0000
commitf27f1e98957a6b98c24a86a01e995e9d638c3258 (patch)
tree59612c232396876c306b3fb730dd58b7b6349b4e
parent4b8181c5877bf2732c983b63342f40bd88171c2d (diff)
downloadgcc-f27f1e98957a6b98c24a86a01e995e9d638c3258.zip
gcc-f27f1e98957a6b98c24a86a01e995e9d638c3258.tar.gz
gcc-f27f1e98957a6b98c24a86a01e995e9d638c3258.tar.bz2
Index declspecs.locations by ds_typedef rather than ds_thread.
From-SVN: r193426
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/parser.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index f9bc3bd..cb861cb 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 f2642ab..7107134 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;