https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82192
--- Comment #4 from Vsevolod Livinskiy ---
(In reply to jos...@codesourcery.com from comment #3)
> On Tue, 12 Sep 2017, vsevolod.livinskij at frtk dot ru wrote:
>
> > struct struct_t {
> > unsigned int memb : 13;
> > };
> >
> > extern struc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82192
--- Comment #3 from joseph at codesourcery dot com ---
On Tue, 12 Sep 2017, vsevolod.livinskij at frtk dot ru wrote:
> struct struct_t {
> unsigned int memb : 13;
> };
>
> extern struct_t b;
> printf("%llu\n", b.memb);
unsigned int :
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82192
--- Comment #2 from Vsevolod Livinskiy ---
(In reply to Andrew Pinski from comment #1)
> Does -fsantize=undefined show anything?
>
> I am suspecting you have undefined behavior with respect to the shift.
Test doesn't contain undefined behavior,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82192
--- Comment #1 from Andrew Pinski ---
Does -fsantize=undefined show anything?
I am suspecting you have undefined behavior with respect to the shift.