public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/22369] C++ produces mis-matched types with pointers to member functions
       [not found] <bug-22369-6528@http.gcc.gnu.org/bugzilla/>
@ 2005-12-05 20:10 ` pinskia at gcc dot gnu dot org
  2007-07-24 15:56 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-05 20:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2005-12-05 20:10 -------
g++.dg/inherit/ptrmem1.C fails the same way.


-- 


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


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

* [Bug c++/22369] C++ produces mis-matched types with pointers to member functions
       [not found] <bug-22369-6528@http.gcc.gnu.org/bugzilla/>
  2005-12-05 20:10 ` [Bug c++/22369] C++ produces mis-matched types with pointers to member functions pinskia at gcc dot gnu dot org
@ 2007-07-24 15:56 ` rguenth at gcc dot gnu dot org
  2007-08-20 12:32 ` rguenth at gcc dot gnu dot org
  2007-08-20 13:24 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-07-24 15:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2007-07-24 15:55 -------
This seems to be fixed at least with the patches I have pending.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-08-05 04:46:23         |2007-07-24 15:55:53
               date|                            |


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


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

* [Bug c++/22369] C++ produces mis-matched types with pointers to member functions
       [not found] <bug-22369-6528@http.gcc.gnu.org/bugzilla/>
  2005-12-05 20:10 ` [Bug c++/22369] C++ produces mis-matched types with pointers to member functions pinskia at gcc dot gnu dot org
  2007-07-24 15:56 ` rguenth at gcc dot gnu dot org
@ 2007-08-20 12:32 ` rguenth at gcc dot gnu dot org
  2007-08-20 13:24 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-08-20 12:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2007-08-20 12:32 -------
Subject: Bug 22369

Author: rguenth
Date: Mon Aug 20 12:31:44 2007
New Revision: 127647

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127647
Log:
2007-08-20  Richard Guenther  <rguenther@suse.de>

        PR c++/22369
        PR c++/22451
        * call.c (build_new_method_call): Convert initializer to
        the basetype.
        * init.c (build_aggr_init): Do not fiddle with types.
        (build_vec_delete_1): Use correct type for POINTER_PLUS_EXPR.
        * except.c (build_throw): Do not drop qualifiers for the
        pointer type.
        * typeck.c (get_member_function_from_ptrfunc): Do not
        fiddle with types, instead convert.
        (build_ptrmemfunc1): Convert to the target type for
        initialization.
        (gfc_trans_allocate): Convert result to target type.
        * cp-objcp-common.c (cxx_get_alias_set): Pointers to
        pointer-to-member structures shall have alias set zero as well.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/cp-objcp-common.c
    trunk/gcc/cp/except.c
    trunk/gcc/cp/init.c
    trunk/gcc/cp/typeck.c


-- 


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


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

* [Bug c++/22369] C++ produces mis-matched types with pointers to member functions
       [not found] <bug-22369-6528@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2007-08-20 12:32 ` rguenth at gcc dot gnu dot org
@ 2007-08-20 13:24 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-08-20 13:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2007-08-20 13:24 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


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


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

* [Bug c++/22369] C++ produces mis-matched types with pointers to member functions
  2005-07-08 15:32 [Bug c++/22369] New: " pinskia at gcc dot gnu dot org
  2005-07-08 16:30 ` [Bug c++/22369] " pinskia at gcc dot gnu dot org
@ 2005-08-05  4:46 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-05  4:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-05 04:46 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-05 04:46:23
               date|                            |


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


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

* [Bug c++/22369] C++ produces mis-matched types with pointers to member functions
  2005-07-08 15:32 [Bug c++/22369] New: " pinskia at gcc dot gnu dot org
@ 2005-07-08 16:30 ` pinskia at gcc dot gnu dot org
  2005-08-05  4:46 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-08 16:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-08 16:30 -------
Oh, I copied the wrong testcase.
Anyways here is the testcase which fails:
struct A { void f() { } };
struct B: public A { };
struct C: public A { };
struct D : public B, public C { };

typedef void (C::*cp)();
typedef void (D::*dp)();

int main()
{
  cp c;
  dp d2 = c;
}
pmf6.C:12: error: statement types mismatch
d2D.1741.__pfnD.1734 = D.1742;

DD.1726:: *
CD.1724:: *

-- 


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


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

end of thread, other threads:[~2007-08-20 13:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-22369-6528@http.gcc.gnu.org/bugzilla/>
2005-12-05 20:10 ` [Bug c++/22369] C++ produces mis-matched types with pointers to member functions pinskia at gcc dot gnu dot org
2007-07-24 15:56 ` rguenth at gcc dot gnu dot org
2007-08-20 12:32 ` rguenth at gcc dot gnu dot org
2007-08-20 13:24 ` rguenth at gcc dot gnu dot org
2005-07-08 15:32 [Bug c++/22369] New: " pinskia at gcc dot gnu dot org
2005-07-08 16:30 ` [Bug c++/22369] " pinskia at gcc dot gnu dot org
2005-08-05  4:46 ` pinskia 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).