[Bug c++/110938] [11/12/13/14 Regression] miscompile if implicit special member is deleted and mutable

2023-11-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110938

--- Comment #5 from Andrew Pinski  ---
(In reply to Jonathan Wakely from comment #3)
> But I don't think that will have affected the __is_trivially_copyable(Y)
> result.

Maybe the __is_trivially_copyable is due to the same reason why PR 112544 shows
up; ::operator= is not synthesized to be deleted yet.

[Bug c++/110938] [11/12/13/14 Regression] miscompile if implicit special member is deleted and mutable

2023-08-08 Thread richard-gccbugzilla at metafoo dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110938

--- Comment #4 from Richard Smith  ---
Looks like the trait difference only happens if the templated constructor is
not deleted, but the ABI mismatch happens regardless. Possibly there are two
separate issues here?

[Bug c++/110938] [11/12/13/14 Regression] miscompile if implicit special member is deleted and mutable

2023-08-08 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110938

--- Comment #3 from Jonathan Wakely  ---
The 4.9.0 regression to return Y in a register seems to have happened with:

commit 3b6d16993b9d6812f6212bce4f35547fd9e40457 [r0-126146-g3b6d16993b9d68]
Author: Vladimir Makarov
Date:   Wed Oct 30 14:27:25 2013

regmove.c: Remove.

But I don't think that will have affected the __is_trivially_copyable(Y)
result.

[Bug c++/110938] [11/12/13/14 Regression] miscompile if implicit special member is deleted and mutable

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110938

--- Comment #2 from Andrew Pinski  ---
Note 4.8.5 (and before), seems to have the wrong ABI for non-mutable case too.

[Bug c++/110938] [11/12/13/14 Regression] miscompile if implicit special member is deleted and mutable

2023-08-07 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110938

Andrew Pinski  changed:

   What|Removed |Added

   Target Milestone|--- |11.5
Summary|miscompile if implicit  |[11/12/13/14 Regression]
   |special member is deleted   |miscompile if implicit
   |and mutable |special member is deleted
   ||and mutable
  Known to work||4.7.1, 4.8.1
  Known to fail||4.9.0, 5.1.0, 7.1.0