for ignored attributes on explicit class instantiation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184254
138bc75d-0d04-0410-961f-
82ee72b054a4
+2012-02-14 Jason Merrill <jason@redhat.com>
+
+ * parser.c (cp_parser_explicit_instantiation): Give a warning
+ for ignored attributes on explicit class instantiation.
+
2012-02-14 Jakub Jelinek <jakub@redhat.com>
PR c++/52247
tree type;
type = check_tag_decl (&decl_specifiers);
+ if (decl_specifiers.attributes)
+ warning (OPT_Wattributes,
+ "attributes ignored on explicit type instantiation");
/* Turn access control back on for names used during
template instantiation. */
pop_deferring_access_checks ();
+2012-02-14 Jason Merrill <jason@redhat.com>
+
+ * g++.dg/ext/attrib43.C: New.
+
2012-02-14 Hans-Peter Nilsson <hp@axis.com>
* lib/target-supports.exp (check_effective_target_fgnu_tm): New
--- /dev/null
+template <class T> struct A { };
+
+template
+__attribute__ ((packed))
+struct A<int>; // { dg-warning "attributes ignored" }