This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25278] g++ seems to ignore an overloaded function.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Dec 2005 19:27:31 -0000
- Subject: [Bug c++/25278] g++ seems to ignore an overloaded function.
- References: <bug-25278-1884@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pinskia at gcc dot gnu dot org 2005-12-06 19:27 -------
The reason why removing one enum works is because the size of the RGB will be
one instead of two so that the specialized version of SwapEndianness::swap can
be used. There is nothing magical here with respect with that.
EDG gives the same result too.
This was an accepts invalid code before 4.1.0 so closing as a dup of the
orginal bug about the accepts invalid (also this could be said to be wrong code
see the dup bug report for more information on how that is true).
*** This bug has been marked as a duplicate of 2922 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25278