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++/14803] New: [3.4.0 regression] Spurious warnings on conversion of pointers to member functions


The example comes from the widely used SystemC library.  3.4 and later versions
of the compiler produce the spurious warning for some, but not all, explicit
conversions from a pointer to member function of a derived class type, to a
pointer to member function of a base class type.  The standard explcitly states
that such conversions are valid.  The diagnostic is

warning: overflow in implicit constant conversion

This construct appears a lot in SystemC, as it represents actions to be
scheduled as pointers to member functions.

-- 
           Summary: [3.4.0 regression] Spurious warnings on conversion of
                    pointers to member functions
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jbuck at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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