Commit 7f3dee0e by Jason Merrill Committed by Jason Merrill

parser.c (cp_parser_explicit_instantiation): Give a warning for ignored…

parser.c (cp_parser_explicit_instantiation): Give a warning for ignored attributes on explicit class instantiation.

	* parser.c (cp_parser_explicit_instantiation): Give a warning
	for ignored attributes on explicit class instantiation.

From-SVN: r184254
parent aa434b3d
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
......
......@@ -13122,6 +13122,9 @@ cp_parser_explicit_instantiation (cp_parser* parser)
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
......
template <class T> struct A { };
template
__attribute__ ((packed))
struct A<int>; // { dg-warning "attributes ignored" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment