re PR c++/86661 (g++ ICE:tree check: expected tree that contains ‘decl minimal’ struc...
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 1 Aug 2018 12:09:33 +0000 (12:09 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 1 Aug 2018 12:09:33 +0000 (12:09 +0000)
commit5ebbb72c205cff26072a2f381a3fe92e26ab8257
tree6069af51b8c67f8d701c0039ecd38edd61d41cd0
parente4837aa9fbb91803585f038de67b0d62d256b654
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
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/name-clash12.C [new file with mode: 0644]