public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/22451] New: C++ front-end produces mis-match types in MODIFY_EXPR (pointer to member functions)
@ 2005-07-13  4:32 pinskia at gcc dot gnu dot org
  2005-08-05  5:11 ` [Bug c++/22451] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-13  4:32 UTC (permalink / raw)
  To: gcc-bugs

testcase:
struct s {};
struct const_mem_fun_t
{
  const_mem_fun_t();
  void operator()(const s* __p) const
    { return (__p->*_M_f)(); }
  void (s::*_M_f)() const;
};
const_mem_fun_t p1;
void test02(const s *a)
{
  p1(a);
}

Compile at -O1.  Use patch in PR 22368 to find this.

-- 
           Summary: C++ front-end produces mis-match types in MODIFY_EXPR
                    (pointer to member functions)
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          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
OtherBugsDependingO 22368
             nThis:


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


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

* [Bug c++/22451] C++ front-end produces mis-match types in MODIFY_EXPR (pointer to member functions)
  2005-07-13  4:32 [Bug c++/22451] New: C++ front-end produces mis-match types in MODIFY_EXPR (pointer to member functions) pinskia at gcc dot gnu dot org
@ 2005-08-05  5:11 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-05  5:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-05 05:11 -------
Confirmed;
t.cc:10: error: statement types mismatch
#   VUSE <SFT.1D.1806_21>;
#   VUSE <SFT.2D.1807_22>;
iftmp.0D.1797_19 = *D.1804_18;

sD.1725:: * const
intD.2 (*__vtbl_ptr_typeD.1484) (void)


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


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


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

* [Bug c++/22451] C++ front-end produces mis-match types in MODIFY_EXPR (pointer to member functions)
       [not found] <bug-22451-6528@http.gcc.gnu.org/bugzilla/>
  2007-07-24 15:57 ` rguenth at gcc dot gnu dot org
  2007-08-20 12:32 ` rguenth at gcc dot gnu dot org
@ 2007-08-20 13:25 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-08-20 13:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2007-08-20 13:25 -------
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=22451


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

* [Bug c++/22451] C++ front-end produces mis-match types in MODIFY_EXPR (pointer to member functions)
       [not found] <bug-22451-6528@http.gcc.gnu.org/bugzilla/>
  2007-07-24 15:57 ` rguenth at gcc dot gnu dot org
@ 2007-08-20 12:32 ` rguenth at gcc dot gnu dot org
  2007-08-20 13:25 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-08-20 12:32 UTC (permalink / raw)
  To: gcc-bugs



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

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=22451


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

* [Bug c++/22451] C++ front-end produces mis-match types in MODIFY_EXPR (pointer to member functions)
       [not found] <bug-22451-6528@http.gcc.gnu.org/bugzilla/>
@ 2007-07-24 15:57 ` rguenth at gcc dot gnu dot org
  2007-08-20 12:32 ` rguenth at gcc dot gnu dot org
  2007-08-20 13:25 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-07-24 15:57 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2007-07-24 15:57 -------
This seems to be fixed 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-12-07 04:28:20         |2007-07-24 15:57:05
               date|                            |


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


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

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-13  4:32 [Bug c++/22451] New: C++ front-end produces mis-match types in MODIFY_EXPR (pointer to member functions) pinskia at gcc dot gnu dot org
2005-08-05  5:11 ` [Bug c++/22451] " pinskia at gcc dot gnu dot org
     [not found] <bug-22451-6528@http.gcc.gnu.org/bugzilla/>
2007-07-24 15:57 ` rguenth at gcc dot gnu dot org
2007-08-20 12:32 ` rguenth at gcc dot gnu dot org
2007-08-20 13:25 ` rguenth 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).