public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105047] New: invalid non-dependent call to non-static member of the current instantiation not rejected ahead of time
@ 2022-03-24 21:15 ppalka at gcc dot gnu.org
2022-12-07 2:03 ` [Bug c++/105047] " pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: ppalka at gcc dot gnu.org @ 2022-03-24 21:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105047
Bug ID: 105047
Summary: invalid non-dependent call to non-static member of the
current instantiation not rejected ahead of time
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ppalka at gcc dot gnu.org
Target Milestone: ---
Accepts-invalid testcase:
template<class>
class A {
void f();
static void g() {
f(); // invalid because 'this' unavailable
}
void h() {
f(0); // invalid because wrong # of arguments
}
};
We probably should be able to reject both calls to f ahead of time.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/105047] invalid non-dependent call to non-static member of the current instantiation not rejected ahead of time
2022-03-24 21:15 [Bug c++/105047] New: invalid non-dependent call to non-static member of the current instantiation not rejected ahead of time ppalka at gcc dot gnu.org
@ 2022-12-07 2:03 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-07 2:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105047
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2022-12-07
Keywords| |diagnostic
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed. Note clang only rejects the call in g.
MSVC acts like GCC here.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-12-07 2:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-24 21:15 [Bug c++/105047] New: invalid non-dependent call to non-static member of the current instantiation not rejected ahead of time ppalka at gcc dot gnu.org
2022-12-07 2:03 ` [Bug c++/105047] " 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).