summaryrefslogtreecommitdiffstats
path: root/gcc/cp/cp-lang.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-30 19:20:19 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-30 19:20:19 +0000
commitd544dcee0ea5bd120aff284df06e22cb1ba44b37 (patch)
tree62928da9ada44844becbd3d8830a73cbe49ba91e /gcc/cp/cp-lang.c
parent5d6e94a7ca13ab8ff7a46141f8a879e2878abb0d (diff)
downloadppe42-gcc-d544dcee0ea5bd120aff284df06e22cb1ba44b37.tar.gz
ppe42-gcc-d544dcee0ea5bd120aff284df06e22cb1ba44b37.zip
PR c++/57404
* cp-lang.c (cp_classify_record): Handle structs without TYPE_LANG_SPECIFIC. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199456 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/cp-lang.c')
-rw-r--r--gcc/cp/cp-lang.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/cp-lang.c b/gcc/cp/cp-lang.c
index 47a6004258b..a7fa8e4b1e9 100644
--- a/gcc/cp/cp-lang.c
+++ b/gcc/cp/cp-lang.c
@@ -127,7 +127,8 @@ cxx_dwarf_name (tree t, int verbosity)
static enum classify_record
cp_classify_record (tree type)
{
- if (CLASSTYPE_DECLARED_CLASS (type))
+ if (TYPE_LANG_SPECIFIC (type)
+ && CLASSTYPE_DECLARED_CLASS (type))
return RECORD_IS_CLASS;
return RECORD_IS_STRUCT;
OpenPOWER on IntegriCloud