https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117512
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Doesn't have to be at global scope and doesn't need to assign uninitialized
var.
struct A {
__attribute__((aligned)) int b;
~A ();
};
A foo (int);
void
bar ()
{
A e = { 0 };
A d = foo (0) = e;
}
ICEs too. Just foo (0) = e; or A d; d = foo (0) = e; doesn't ICE though.