[Bug c++/88362] attribute aligned silently ignored on C++ references

2018-12-05 Thread msebor at gcc dot gnu.org
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

[Bug c++/88362] attribute aligned silently ignored on C++ references

2018-12-05 Thread joseph at codesourcery dot com
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

[Bug c++/88362] attribute aligned silently ignored on C++ references

2018-12-05 Thread msebor at gcc dot gnu.org
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

[Bug c++/88362] attribute aligned silently ignored on C++ references

2018-12-05 Thread joseph at codesourcery dot com
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

[Bug c++/88362] attribute aligned silently ignored on C++ references

2018-12-05 Thread jakub at gcc dot gnu.org
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

[Bug c++/88362] attribute aligned silently ignored on C++ references

2018-12-05 Thread rguenth at gcc dot gnu.org
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

[Bug c++/88362] attribute aligned silently ignored on C++ references

2018-12-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88362 Martin Sebor changed: What|Removed |Added Keywords||wrong-code Known to fail|