[Bug c++/95094] alignof(reference_to_type) doesn't return alignof(referenced_type) as it should by the standard
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95094 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org See Also||https://gcc.gnu.org/bugzill ||a/show_bug.cgi?id=88362 --- Comment #4 from Martin Sebor --- See also pr88362 for a related report of an inconsistency in handling alignas/alignof (both within GCC and between GCC and Clang).
[Bug c++/95094] alignof(reference_to_type) doesn't return alignof(referenced_type) as it should by the standard
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95094 --- Comment #3 from Inbal Levi --- Actually, you are right, I'm currently working on a paper to change it, should have waited for afterward. The reason to change it is to align (...) with C behavior.
[Bug c++/95094] alignof(reference_to_type) doesn't return alignof(referenced_type) as it should by the standard
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95094 --- Comment #2 from Jonathan Wakely --- But this doesn't seem like a very useful behaviour for the extension.
[Bug c++/95094] alignof(reference_to_type) doesn't return alignof(referenced_type) as it should by the standard
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95094 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski --- alignof with an expression rather than a type is a GNU extension ...