public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35929]  New: Argument type of non-member operator->*
@ 2008-04-14  5:23 gcc at magfr dot user dot lysator dot liu dot se
  2008-04-14  5:25 ` [Bug c++/35929] " gcc at magfr dot user dot lysator dot liu dot se
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gcc at magfr dot user dot lysator dot liu dot se @ 2008-04-14  5:23 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 931 bytes --]

When I try to compile a non-member operator ->* g++ tells me that

pmv.C:3: error: 'int& operator->*(s*, int s::*)' must have an argument of class
or enumerated type

but the only place where the standard mentions the argument types of ->* is in
13.6§11 and there it is stated

...there exist candidate operator functions of the form
     CV12 T & operator->*(CV1 C1 *, CV2 T C2 ::*);

and thus I think this is a bug.


-- 
           Summary: Argument type of non-member operator->*
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gcc at magfr dot user dot lysator dot liu dot se
 GCC build triplet: i586-pc-linux-gnu
  GCC host triplet: i586-pc-linux-gnu
GCC target triplet: i586-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35929


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-04-14 14:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-14  5:23 [Bug c++/35929] New: Argument type of non-member operator->* gcc at magfr dot user dot lysator dot liu dot se
2008-04-14  5:25 ` [Bug c++/35929] " gcc at magfr dot user dot lysator dot liu dot se
2008-04-14  6:35 ` gcc at magfr dot user dot lysator dot liu dot se
2008-04-14 14:18 ` 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).