public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/94803] New: wrong class name in error message
@ 2020-04-27 16:05 f.heckenbach@fh-soft.de
2020-04-27 16:10 ` [Bug c++/94803] " mpolacek at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: f.heckenbach@fh-soft.de @ 2020-04-27 16:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94803
Bug ID: 94803
Summary: wrong class name in error message
Product: gcc
Version: 9.1.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
struct a
{
void f ();
};
struct b: a
{
void f () { a::f (0); }
};
int main ()
{
}
% g++ test.cpp
test.cpp: In member function 'void b::f()':
test.cpp:8:22: error: no matching function for call to 'b::f(int)'
8 | void f () { a::f (0); }
| ^
test.cpp:3:8: note: candidate: 'void a::f()'
3 | void f ();
| ^
test.cpp:3:8: note: candidate expects 0 arguments, 1 provided
It says "call to 'b::f(int)'", but the call is explicitly to a::f.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/94803] wrong class name in error message
2020-04-27 16:05 [Bug c++/94803] New: wrong class name in error message f.heckenbach@fh-soft.de
@ 2020-04-27 16:10 ` mpolacek at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-04-27 16:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94803
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Ever confirmed|0 |1
Last reconfirmed| |2020-04-27
CC| |mpolacek at gcc dot gnu.org
Status|UNCONFIRMED |NEW
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed, at least gcc 4.8 prints the same thing.
The 'b' comes from basetype here:
10008 error ("no matching function for call to %<%T::%s%E(%A)%#V%>",
10009 basetype, &"~"[!twiddle], errname, arglist,
10010 TREE_TYPE (instance));
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-27 16:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-27 16:05 [Bug c++/94803] New: wrong class name in error message f.heckenbach@fh-soft.de
2020-04-27 16:10 ` [Bug c++/94803] " mpolacek 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).