class.c (finish_struct): Use OVL_P.
authorNathan Sidwell <nathan@acm.org>
Thu, 29 Jun 2017 14:28:24 +0000 (14:28 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 29 Jun 2017 14:28:24 +0000 (14:28 +0000)
commit79a2e690b4654e88437aa40627f24068dc5216f5
tree7f3c0688b56f3b43464c3d6023a94fcb4c03812d
parent9a82bd058df19d15cfbd0c16a09a6ba0c5c5cfa7
class.c (finish_struct): Use OVL_P.

* class.c (finish_struct): Use OVL_P.
(get_vfield_name): Measure constructor_name length.
* cp-tree.h (SET_CLASS_TYPE_P): Add RECORD_OR_UNION_CHECK.
(NON_UNION_CLASS_TYPE_P): Check RECORD_TYPE up front.
* cxx-pretty-print.c (is_destructor_name): Delete.
(pp_cxx_unqualified_id): Remove bogus destructor name checking.
* decl.c (grokfndecl): Move cheap checks first when looking for
implicit extern cness.

From-SVN: r249788
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/cxx-pretty-print.c
gcc/cp/decl.c