http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39170
--- Comment #12 from Tom Geocaris 2013-01-04 17:32:22
UTC ---
Is there any resolution to this issue? We need to move to a more recent version
of gcc, but are still stuck at gcc 4.2.4.
I looked at gcc 4.7.2 but behavior is the same and I
--- Comment #6 from tom at atoptech dot com 2009-03-10 20:34 ---
Subject: Re: cannot silence -Wconversion warnings for
bit-fields
> AFAIK, that is not true. I just tried your very example with gcc 4.2.4 and it
> doesn't warn with -Wall -Wextra -Wconversion. g++ d
--- Comment #4 from tom at atoptech dot com 2009-03-10 17:40 ---
Manuel,
You miss understood what I meant by "old behavior was just fine". I was saying
that the previous behavior of "gcc" worked fine and I was NOT referring
specifically to the "-Wconversio
--- Comment #2 from tom at atoptech dot com 2009-02-12 18:10 ---
Subject: Re: -Wconversion useless
You miss the point. The only way to assign a non-constant value to a bit
field outside of a struct is using an integral variable i.e.,
struct foo
{
int a : 2;
};
void assign
3.3
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tom at atoptech dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39170