public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gcc at magfr dot user dot lysator dot liu dot se" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/35929]  New: Argument type of non-member operator->*
Date: Mon, 14 Apr 2008 05:23:00 -0000	[thread overview]
Message-ID: <bug-35929-7796@http.gcc.gnu.org/bugzilla/> (raw)

[-- 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


             reply	other threads:[~2008-04-14  5:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-14  5:23 gcc at magfr dot user dot lysator dot liu dot se [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-35929-7796@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).