[Bug c++/16381] [3.3/3.5 Regression] Structure layout bug
zhangjie at magima dot com dot cn
gcc-bugzilla@gcc.gnu.org
Tue Aug 17 10:04:00 GMT 2004
------- Additional Comments From zhangjie at magima dot com dot cn 2004-08-17 10:04 -------
(In reply to comment #3)
>
> The distinction between GCC 3.4 and GCC 3.5 is that GCC 3.4 is treating Base2 as
> a POD, where as GCC 3.5 is not. I see no reason why a struct containing
> "__m128" should disqualify a type from being a POD, although clearly that is not
> specified by the standard.
>
I think "__m128" would better be treated as plain data type like int and long.
So I prefer the result of "3.5.0 20040626" in comment #2.
> Therefore, I've retargeted this at GCC 3.5.
Although I have not tested, I guess GCC 3.4.1 on cygwin will also give the wrong
result, whether "__m128" is treated as POD or not. So if we want to fix it on
cygwin, we'd better retarget it at GCC 3.4.2.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16381
More information about the Gcc-bugs
mailing list