[Bug c++/109824] aligned attribute lost on first usage

2023-05-12 Thread stsp at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109824

Stas Sergeev  changed:

   What|Removed |Added

 Status|RESOLVED|UNCONFIRMED
 Resolution|DUPLICATE   |---

--- Comment #3 from Stas Sergeev  ---
Andrew, why not to read the bug description
at least, or try what was said in it?
It says:

But comment out the line 9 under "ifndef BUG"
and it compiles without an error.

This has nothing to do with the bug you
referred as a duplicate.
Please indicate that you tried that, only
then close.

[Bug c++/109824] aligned attribute lost on first usage

2023-05-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109824

Andrew Pinski  changed:

   What|Removed |Added

 Resolution|--- |DUPLICATE
   See Also||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=77388
 Status|UNCONFIRMED |RESOLVED

--- Comment #2 from Andrew Pinski  ---
This is by design.

*** This bug has been marked as a duplicate of bug 109654 ***

[Bug c++/109824] aligned attribute lost on first usage

2023-05-12 Thread stsp at users dot sourceforge.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109824

--- Comment #1 from Stas Sergeev  ---
Sorry, copied the output from wrong place.
The real error msg looks like this:

$ g++ -Wall -c a.cpp 
a.cpp: In member function ‘less_aligned_a& t1::get_ref()’:
a.cpp:17:16: error: cannot bind packed field ‘((t1*)this)->t1::i’ to
‘less_aligned_a&’ {aka ‘a&’}
   17 | return i;