re PR c++/66748 (Crash with abi_tag attribute)
authorMarek Polacek <polacek@redhat.com>
Wed, 8 Jul 2015 10:36:26 +0000 (10:36 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 8 Jul 2015 10:36:26 +0000 (10:36 +0000)
commit7b3bc1f3bdc39883d1d3575341b280a762731a5b
treeeb4298eb09493245f072bb119f21feab7fa7240b
parentdaee9ce2953033be80e974fd467201934eb1ed01
re PR c++/66748 (Crash with abi_tag attribute)

PR c++/66748
* tree.c (handle_abi_tag_attribute): Check for CLASS_TYPE_P before
accessing TYPE_LANG_SPECIFIC node.

* g++.dg/abi/abi-tag15.C: New test.

From-SVN: r225541
gcc/cp/ChangeLog
gcc/cp/tree.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/abi/abi-tag15.C [new file with mode: 0644]