diff options
author | Nathan Sidwell <nathan@acm.org> | 2018-11-07 16:28:46 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2018-11-07 16:28:46 +0000 |
commit | 84d29eb8ce0ecf36bcdca40154d5f02f7546d0fb (patch) | |
tree | 6e9f9f904042185d9fb6a040f4afb19406cf0e66 /gcc/cp/cp-tree.h | |
parent | 266cd16f457cfc7c2a378dd680a90c9babcefa87 (diff) |
[PR C++/87904] lookup ICE
https://gcc.gnu.org/ml/gcc-patches/2018-11/msg00468.html
PR c++/87904
* cp-tree.h (struct tree_overload): Fix comment.
* tree.c (ovl_iterator::reveal_node): Propagate OVL_DEDUP_P.
PR c++/87904
* g++.dg/lookup/pr87904.C: New.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@265879 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/cp-tree.h')
-rw-r--r-- | gcc/cp/cp-tree.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index a895d0042ab..91f5755a187 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -723,8 +723,7 @@ typedef struct ptrmem_cst * ptrmem_cst_t; #define OVL_SINGLE_P(NODE) \ (TREE_CODE (NODE) != OVERLOAD || !OVL_CHAIN (NODE)) -/* OVL_HIDDEN_P nodes come first, then OVL_USING_P nodes, then regular - fns. */ +/* OVL_HIDDEN_P nodes come before other nodes. */ struct GTY(()) tree_overload { struct tree_common common; |