diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-04-02 11:45:31 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-04-02 11:45:31 +0000 |
commit | 5b97892cb41f9e0295e2e05bfbfabd4ecd92dccf (patch) | |
tree | b0d352a9b72a46bacfdf04a1ebc42330dcaaeacc /gcc/cp/decl.c | |
parent | da10bc87e71ed60722ecf383220d49f69e8e4186 (diff) | |
download | gcc-5b97892cb41f9e0295e2e05bfbfabd4ecd92dccf.tar.gz |
2013-04-02 Paolo Carlini <paolo.carlini@oracle.com>
* cp-tree.h (TAGGED_TYPE_P): Remove.
(IS_OVERLOAD_TYPE): Rename to OVERLOAD_TYPE_P, adjust.
(TYPE_ANONYMOUS_P): Adjust.
* call.c (build_new_op_1): Likewise.
* class.c (find_abi_tags_r): Likewise.
* decl.c (warn_misplaced_attr_for_class_type, start_decl,
type_is_deprecated): Likewise.
* decl2.c (grokfield, min_vis_r): Likewise.
* pt.c (get_template_info): Likewise.
* tree.c (handle_abi_tag_attribute): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197347 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 9e280eac9f7..40200b005f9 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -4182,7 +4182,7 @@ void warn_misplaced_attr_for_class_type (source_location location, tree class_type) { - gcc_assert (TAGGED_TYPE_P (class_type)); + gcc_assert (OVERLOAD_TYPE_P (class_type)); warning_at (location, OPT_Wattributes, "attribute ignored in declaration " @@ -4497,7 +4497,7 @@ start_decl (const cp_declarator *declarator, /* If this is a typedef that names the class for linkage purposes (7.1.3p8), apply any attributes directly to the type. */ if (TREE_CODE (decl) == TYPE_DECL - && TAGGED_TYPE_P (TREE_TYPE (decl)) + && OVERLOAD_TYPE_P (TREE_TYPE (decl)) && decl == TYPE_NAME (TYPE_MAIN_VARIANT (TREE_TYPE (decl)))) flags = ATTR_FLAG_TYPE_IN_PLACE; else @@ -10938,7 +10938,7 @@ type_is_deprecated (tree type) return type; /* Do warn about using typedefs to a deprecated class. */ - if (TAGGED_TYPE_P (type) && type != TYPE_MAIN_VARIANT (type)) + if (OVERLOAD_TYPE_P (type) && type != TYPE_MAIN_VARIANT (type)) return type_is_deprecated (TYPE_MAIN_VARIANT (type)); code = TREE_CODE (type); |