aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/class.c
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2018-08-01 12:09:33 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2018-08-01 12:09:33 +0000
commit5ebbb72c205cff26072a2f381a3fe92e26ab8257 (patch)
tree6069af51b8c67f8d701c0039ecd38edd61d41cd0 /gcc/cp/class.c
parente4837aa9fbb91803585f038de67b0d62d256b654 (diff)
downloadgcc-5ebbb72c205cff26072a2f381a3fe92e26ab8257.zip
gcc-5ebbb72c205cff26072a2f381a3fe92e26ab8257.tar.gz
gcc-5ebbb72c205cff26072a2f381a3fe92e26ab8257.tar.bz2
re PR c++/86661 (g++ ICE:tree check: expected tree that contains ‘decl minimal’ structure, have ‘overload’ in note_name_declared_in_class, at cp/class.c:8288)
/cp 2018-08-01 Paolo Carlini <paolo.carlini@oracle.com> PR c++/86661 * class.c (note_name_declared_in_class): Use location_of in permerror instead of DECL_SOURCE_LOCATION (for OVERLOADs). /testsuite 2018-08-01 Paolo Carlini <paolo.carlini@oracle.com> PR c++/86661 * g++.dg/lookup/name-clash12.C: New. From-SVN: r263207
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r--gcc/cp/class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index c03a82b..de59831 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -8285,7 +8285,7 @@ note_name_declared_in_class (tree name, tree decl)
A name N used in a class S shall refer to the same declaration
in its context and when re-evaluated in the completed scope of
S. */
- if (permerror (DECL_SOURCE_LOCATION (decl),
+ if (permerror (location_of (decl),
"declaration of %q#D changes meaning of %qD",
decl, OVL_NAME (decl)))
inform (location_of ((tree) n->value),