This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/58820] lambda multiple inheritance operator() not ambiguous
- From: "rs2740 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 11 Jun 2017 01:36:24 +0000
- Subject: [Bug c++/58820] lambda multiple inheritance operator() not ambiguous
- Auto-submitted: auto-generated
- References: <bug-58820-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58820
TC <rs2740 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rs2740 at gmail dot com
--- Comment #3 from TC <rs2740 at gmail dot com> ---
This should be closed as invalid. The lookup for `operator()` is indeed
ambiguous, (see [class.member.lookup]/6 - the merge produces an invalid set),
and GCC correctly reports it as such.
In the absence of using-declarations, names from different base classes don't
overload.