This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/14803] New: [3.4.0 regression] Spurious warnings on conversion of pointers to member functions
- From: "jbuck at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Mar 2004 23:44:49 -0000
- Subject: [Bug c++/14803] New: [3.4.0 regression] Spurious warnings on conversion of pointers to member functions
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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