public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21801] New: Accepts invalid for const member pointer functions
@ 2005-05-28 17:55 pinskia at gcc dot gnu dot org
2005-05-28 17:55 ` [Bug c++/21801] " pinskia at gcc dot gnu dot org
2005-05-31 13:52 ` bangerth at dealii dot org
0 siblings, 2 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-28 17:55 UTC (permalink / raw)
To: gcc-bugs
Looking at PR 21799, I noticed that we accept the code if we remove the second template function, like
so:
template <class T> void f (T &, void (T::*)() );
struct X {
void g() const;
};
const X *x;
int main () {
f (*x, &X::g);
}
--
Summary: Accepts invalid for const member pointer functions
Product: gcc
Version: 4.0.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=21801
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/21801] Accepts invalid for const member pointer functions
2005-05-28 17:55 [Bug c++/21801] New: Accepts invalid for const member pointer functions pinskia at gcc dot gnu dot org
@ 2005-05-28 17:55 ` pinskia at gcc dot gnu dot org
2005-05-31 13:52 ` bangerth at dealii dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-28 17:55 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |21799
nThis| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21801
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/21801] Accepts invalid for const member pointer functions
2005-05-28 17:55 [Bug c++/21801] New: Accepts invalid for const member pointer functions pinskia at gcc dot gnu dot org
2005-05-28 17:55 ` [Bug c++/21801] " pinskia at gcc dot gnu dot org
@ 2005-05-31 13:52 ` bangerth at dealii dot org
1 sibling, 0 replies; 3+ messages in thread
From: bangerth at dealii dot org @ 2005-05-31 13:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2005-05-31 13:49 -------
This is a duplicate of one of my rather older bugs, PR 8271...
W.
*** This bug has been marked as a duplicate of 8271 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21801
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-05-31 13:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-28 17:55 [Bug c++/21801] New: Accepts invalid for const member pointer functions pinskia at gcc dot gnu dot org
2005-05-28 17:55 ` [Bug c++/21801] " pinskia at gcc dot gnu dot org
2005-05-31 13:52 ` bangerth at dealii dot 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).