gcc/cp
2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
PR c++/39219
* parser.c (cp_parser_enum_specifier): Apply all attributes.
gcc/testsuite/
2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
PR c++/39219
* g++.dg/parse/attr3.C: New.
From-SVN: r173133
+2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR c++/39219
+ * parser.c (cp_parser_enum_specifier): Apply all attributes.
+
2011-03-08 Jason Merrill <jason@redhat.com>
PR c++/45651
if (cp_parser_allow_gnu_extensions_p (parser))
{
tree trailing_attr = cp_parser_attributes_opt (parser);
+ trailing_attr = chainon (trailing_attr, attributes);
cplus_decl_attributes (&type,
trailing_attr,
(int) ATTR_FLAG_TYPE_IN_PLACE);
+2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR c++/39219
+ * g++.dg/parse/attr3.C: New.
+
2011-03-08 Jason Merrill <jason@redhat.com>
* g++.dg/template/anon5.C: New.
--- /dev/null
+// PR c++/39219
+
+enum __attribute__ ((deprecated)) E { e };
+struct S { enum __attribute__ ((deprecated)) F { f = e }; };
+
+int main () {
+ E x; // { dg-warning "'E' is deprecated" "" }
+ x = e;
+
+ S::F y; // { dg-warning "'F' is deprecated" "" }
+ y = S::f;
+
+ return x + y;
+}