+2015-07-08 Marek Polacek <polacek@redhat.com>
+
+ PR c++/66748
+ * tree.c (handle_abi_tag_attribute): Check for CLASS_TYPE_P before
+ accessing TYPE_LANG_SPECIFIC node.
+
2015-07-07 Andrew MacLeod <amacleod@redhat.com>
* call.c: Adjust includes.
name, *node);
goto fail;
}
- else if (CLASSTYPE_TEMPLATE_INSTANTIATION (*node))
+ else if (CLASS_TYPE_P (*node)
+ && CLASSTYPE_TEMPLATE_INSTANTIATION (*node))
{
warning (OPT_Wattributes, "ignoring %qE attribute applied to "
"template instantiation %qT", name, *node);
goto fail;
}
- else if (CLASSTYPE_TEMPLATE_SPECIALIZATION (*node))
+ else if (CLASS_TYPE_P (*node)
+ && CLASSTYPE_TEMPLATE_SPECIALIZATION (*node))
{
warning (OPT_Wattributes, "ignoring %qE attribute applied to "
"template specialization %qT", name, *node);
+2015-07-08 Marek Polacek <polacek@redhat.com>
+
+ PR c++/66748
+ * g++.dg/abi/abi-tag15.C: New test.
+
2015-07-08 Andrew Bennett <andrew.bennett@imgtec.com>
* gcc.target/mips/branch-2.c: Change NOMIPS16 to NOCOMPRESSION.