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++/25278] g++ seems to ignore an overloaded function.



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


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