https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91563
Richard Biener changed:
What|Removed |Added
Status|NEW |RESOLVED
Known to work|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91563
--- Comment #5 from Guillaume Morin ---
Jakub mentioned that r273135 fixed the abort() in the trunk. I noticed that
this revision had already been backported to the gcc-9 branch as r274532. So I
built the gcc-9 branch and I can confirm that it do
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91563
Jonathan Wakely changed:
What|Removed |Added
Keywords||wrong-code
Status|UNCONFIR
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91563
--- Comment #3 from Guillaume Morin ---
Jonathan,
Are you sure? I modified the code to print std::is_trivially_copyable::value
and it does print "1". Am I missing something obvious?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91563
--- Comment #2 from Jakub Jelinek ---
Just a note from bisection, stopped aborting on trunk with r273135, and started
to abort in r260318.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91563
--- Comment #1 from Jonathan Wakely ---
The program's behaviour is undefined, because memset can't be used for writing
to non-trivially copyable types.