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

* [Bug c++/35929] Argument type of non-member operator->*
  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 ` 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
  2 siblings, 0 replies; 4+ messages in thread
From: gcc at magfr dot user dot lysator dot liu dot se @ 2008-04-14  5:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from gcc at magfr dot user dot lysator dot liu dot se  2008-04-14 05:24 -------
Created an attachment (id=15475)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15475&action=view)
Testcase for the error message

Repeat by compiling as 

g++ -c pmv.C


-- 


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


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

* [Bug c++/35929] Argument type of non-member operator->*
  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
  2 siblings, 0 replies; 4+ messages in thread
From: gcc at magfr dot user dot lysator dot liu dot se @ 2008-04-14  6:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from gcc at magfr dot user dot lysator dot liu dot se  2008-04-14 06:34 -------
I think I was wrong.


-- 

gcc at magfr dot user dot lysator dot liu dot se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

* [Bug c++/35929] Argument type of non-member operator->*
  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
  2 siblings, 0 replies; 4+ messages in thread
From: bangerth at dealii dot org @ 2008-04-14 14:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from bangerth at dealii dot org  2008-04-14 14:17 -------
Yes. Note that it requires an argument of *class* type, not *pointer to
class* type.


-- 


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).