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; 4+ 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] 4+ messages in thread
[parent not found: <bug-21801-6528@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2005-10-12 20:55 UTC | newest]

Thread overview: 4+ 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
     [not found] <bug-21801-6528@http.gcc.gnu.org/bugzilla/>
2005-10-12 20:55 ` cvs-commit at gcc dot gnu 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).