https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106873
--- Comment #6 from Kemal Akcam ---
(In reply to Jonathan Wakely from comment #5)
> Read https://en.cppreference.com/w/c/language/object#Alignment (for C) and
> https://en.cppreference.com/w/cpp/language/object#Alignment (for C++).
>
> Instead
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106873
--- Comment #3 from Kemal Akcam ---
I did not report as if unsigned short was different than 2 bytes.
Please check the output and explain
1. why output values changes?
2. why it reads/advances 10 bytes instead of 8 bytes?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106873
Bug ID: 106873
Summary: unsigned short skips byte when used for memory mapping
depending on position in structure
Product: gcc
Version: 12.1.0
Status: UNCONFIRMED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106869
Bug ID: 106869
Summary: ranges::unique does nothing unless ranges::sort called
first or something else is wrong.
Product: gcc
Version: 12.1.0
Status: UNCONFIRMED