[Bug c++/25278] g++ seems to ignore an overloaded function.

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Dec 6 19:27:00 GMT 2005



------- 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



More information about the Gcc-bugs mailing list