[Bug c++/14803] New: [3.4.0 regression] Spurious warnings on conversion of pointers to member functions
jbuck at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Mar 31 23:44:00 GMT 2004
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
More information about the Gcc-bugs
mailing list