diff options
author | Nathaniel Shead <nathanieloshead@gmail.com> | 2024-03-05 01:59:41 +1100 |
---|---|---|
committer | Nathaniel Shead <nathanieloshead@gmail.com> | 2024-03-07 21:59:32 +1100 |
commit | 940586a63586941a9f2b973491afc8a15a96c98b (patch) | |
tree | 0ee9cd379e30cd78ca87beddcf386363bd61b780 /gcc/system.h | |
parent | 77772f8a3da8ea30066d2201f8148714a8e89da5 (diff) | |
download | gcc-940586a63586941a9f2b973491afc8a15a96c98b.zip gcc-940586a63586941a9f2b973491afc8a15a96c98b.tar.gz gcc-940586a63586941a9f2b973491afc8a15a96c98b.tar.bz2 |
c++: Fix ICE diagnosing incomplete type of overloaded function set [PR98356]
In the linked PR the result of 'get_first_fn' is a USING_DECL against
the template parameter, to be filled in on instantiation. But we don't
actually need to get the first set of the member functions: it's enough
to know that we have a (possibly overloaded) member function at all.
PR c++/98356
gcc/cp/ChangeLog:
* typeck2.cc (cxx_incomplete_type_diagnostic): Don't assume
'member' will be a FUNCTION_DECL (or something like it).
gcc/testsuite/ChangeLog:
* g++.dg/pr98356.C: New test.
Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Diffstat (limited to 'gcc/system.h')
0 files changed, 0 insertions, 0 deletions