https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88362
--- Comment #7 from Martin Sebor ---
I would think for the same reason why attribute aligned applies to the
reference and not to the type it refers to. If it makes sense for the
following to declare an overaligned reference to an ordinary int ra
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88362
--- Comment #6 from joseph at codesourcery dot com ---
On Wed, 5 Dec 2018, msebor at gcc dot gnu.org wrote:
> so that we get consistent behavior for reference members. __alignof__ should
> return the corresponding alignment. For example, in th
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88362
--- Comment #5 from Martin Sebor ---
I think the attribute on references needs to work the same way as on pointers
so that we get consistent behavior for reference members. __alignof__ should
return the corresponding alignment. For example, in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88362
--- Comment #4 from joseph at codesourcery dot com ---
It's not very clear to me what an aligned attribute on a reference, or a
check of the alignment of a reference, should mean anyway.
Note that in some places, [[]]-style attributes appertain
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88362
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #3
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88362
Richard Biener changed:
What|Removed |Added
CC||jsm28 at gcc dot gnu.org
--- Comment #2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88362
Martin Sebor changed:
What|Removed |Added
Keywords||wrong-code
Known to fail|