This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22620] New: Accepts invalid, inaccessible overloaded function is accepted
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jul 2005 20:23:46 -0000
- Subject: [Bug c++/22620] New: Accepts invalid, inaccessible overloaded function is accepted
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following is invalid code and should be rejected:
class foo {
int mf(int);
int mf();
};
template<int (foo::*)()>
struct fm_obj {
};
fm_obj<&foo::mf> a;
--
Summary: Accepts invalid, inaccessible overloaded function is
accepted
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22620