diff options
author | Patrick Palka <ppalka@redhat.com> | 2021-12-14 07:48:05 -0500 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2021-12-14 07:48:05 -0500 |
commit | c5ef950d0bb7d451e8d831f71351a5db4373aa9a (patch) | |
tree | 8e6d320972b602dc5858647b6990d3112fc2583b /gcc/cp/tree.c | |
parent | dff8ae8e839a5102aff266c8246864b610c066c9 (diff) | |
download | gcc-c5ef950d0bb7d451e8d831f71351a5db4373aa9a.tar.gz |
c++: remove COMPOUND_EXPR_OVERLOADED flag
This flag is never set because non-dependent COMPOUND_EXPRs that resolve
to an overload are expressed as a CALL_EXPR at template definition time
(in build_x_compound_expr) ever since r6-5772.
gcc/cp/ChangeLog:
* cp-tree.h (COMPOUND_EXPR_OVERLOADED): Remove.
* pt.c (build_non_dependent_expr): Don't inspect the flag.
* tree.c (build_min_non_dep): Don't set the flag.
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r-- | gcc/cp/tree.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index 52c56831f98..f6f7927f293 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -3577,11 +3577,6 @@ build_min_non_dep (enum tree_code code, tree non_dep, ...) for (i = 0; i < length; i++) TREE_OPERAND (t, i) = va_arg (p, tree); - if (code == COMPOUND_EXPR && TREE_CODE (non_dep) != COMPOUND_EXPR) - /* This should not be considered a COMPOUND_EXPR, because it - resolves to an overload. */ - COMPOUND_EXPR_OVERLOADED (t) = 1; - va_end (p); return convert_from_reference (t); } |