]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: OVERLOAD in diagnostics
authorJason Merrill <jason@redhat.com>
Wed, 3 Jul 2024 21:25:53 +0000 (17:25 -0400)
committerJason Merrill <jason@redhat.com>
Thu, 4 Jul 2024 02:04:50 +0000 (22:04 -0400)
commitbaac8f710e35cfea14060e5eca49dbb49ffc294d
tree44622cf765c02d91496e6335ffebfc306185abad
parent655fe94ae4c95d7f113c62787ca382d2742fad6f
c++: OVERLOAD in diagnostics

In modules we can get an OVERLOAD around a non-function, so let's tail
recurse instead of falling through.  As a result we start printing the
template header in this testcase.

gcc/cp/ChangeLog:

* error.cc (dump_decl) [OVERLOAD]: Recurse on single case.

gcc/testsuite/ChangeLog:

* g++.dg/warn/pr61945.C: Adjust diagnostic.
gcc/cp/error.cc
gcc/testsuite/g++.dg/warn/pr61945.C