This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/20734] [4.0/4.1 Regression] rejects valid pointer to member


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-03 17:50 -------
It also fails with "4.1.0 20050308".
I think this was caused by:
2005-03-05  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>

        PR c++/19311
        * init.c (build_offset_ref): Don't build non-dependent SCOPE_REF.
        * pt.c (build_non_dependent_expr): Don't build NON_DEPENDENT_EXPR
        for OFFSET_TYPE.
        * typeck.c (build_x_unary_op): Don't build non-dependent SCOPE_REF.
        Also set PTRMEM_OK_P for NON_DEPENDENT_EXPR.
        (build_unary_op): Handle building ADDR_EXPR of OFFSET_REF inside
        template.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lerdsuwa at gcc dot gnu dot
                   |                            |org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]