--- 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 t
--- Comment #4 from theodore dot papadopoulo at sophia dot inria dot fr
2005-12-06 18:51 ---
(In reply to comment #2)
I may accept that g++ is right to reject this code. I cannot convince myself
from reading the standard but I'm not a langage lawyer. I think that this is a
major flaw in
--- Comment #3 from theodore dot papadopoulo at sophia dot inria dot fr
2005-12-06 18:46 ---
(In reply to comment #0)
> The code attached does not compile since version 4.0 of gcc.
> Remove either the Cpu namespace or one element in the enumeration or replace
> the array size in RGBPixe
--- Comment #2 from pinskia at gcc dot gnu dot org 2005-12-06 17:48 ---
No, GCC is correct to reject this code. What is happening is that the
overloaded set for the ChangeEndianness in the second ChangeEndianness is only
the first and the second so there is no way to consider the third
--- Comment #1 from theodore dot papadopoulo at sophia dot inria dot fr
2005-12-06 17:39 ---
Created an attachment (id=10419)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10419&action=view)
The code describing the regression.
Simplify compile with g++
--
http://gcc.gnu.org/