public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/114362] New: wrong error message "too many arguments" with overloaded function
@ 2024-03-16 9:12 f.heckenbach@fh-soft.de
2024-03-16 18:11 ` [Bug c++/114362] " pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: f.heckenbach@fh-soft.de @ 2024-03-16 9:12 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114362
Bug ID: 114362
Summary: wrong error message "too many arguments" with
overloaded function
Product: gcc
Version: 13.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: f.heckenbach@fh-soft.de
Target Milestone: ---
% cat test.cpp
#include <tuple>
void f ();
void f (int);
void g ()
{
std::tie (f) = 0;
}
% g++ test.cpp
test.cpp: In function 'void g()':
test.cpp:8:12: error: too many arguments to function 'constexpr
std::tuple<_Elements& ...> std::tie(_Elements& ...) [with _Elements = {}]'
[...]
This only happens when f is overloaded. When I comment out either of the two
declarations of f, I get only "error: no match for 'operator='" as expected.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/114362] wrong error message "too many arguments" with overloaded function
2024-03-16 9:12 [Bug c++/114362] New: wrong error message "too many arguments" with overloaded function f.heckenbach@fh-soft.de
@ 2024-03-16 18:11 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-16 18:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114362
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup.
*** This bug has been marked as a duplicate of bug 104343 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-16 18:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-16 9:12 [Bug c++/114362] New: wrong error message "too many arguments" with overloaded function f.heckenbach@fh-soft.de
2024-03-16 18:11 ` [Bug c++/114362] " pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).