[Bug c++/104669] [11 Regression] ICE in is_function_default_version, at attribs.cc:1219

2024-03-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104669

--- Comment #8 from Andrew Pinski  ---
*** Bug 100643 has been marked as a duplicate of this bug. ***

[Bug c++/104669] [11 Regression] ICE in is_function_default_version, at attribs.cc:1219

2022-05-12 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104669

Jason Merrill  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Jason Merrill  ---
Fixed for 11.4.

[Bug c++/104669] [11 Regression] ICE in is_function_default_version, at attribs.cc:1219

2022-05-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104669

--- Comment #6 from CVS Commits  ---
The releases/gcc-11 branch has been updated by Jason Merrill
:

https://gcc.gnu.org/g:0c45820ead85b8bc6f8283f7692a85d0c12ded4f

commit r11-9983-g0c45820ead85b8bc6f8283f7692a85d0c12ded4f
Author: Jason Merrill 
Date:   Tue Apr 12 16:40:14 2022 -0400

c++: local function versioning [PR104669]

There were two problems with this testcase: we weren't copying the target
attribute from the second declaration to the global alias for the first
one (duplicate_decls hunk), and then we were treating the third one as
matching the earlier one even though both are versioned (decls_match hunk).
The latter change required a fix to find_last_decl (used for attribute
mismatch warnings) to give up if we see a versioned function, as in that
case we can't determine whether the decls match, because we are still in
the
process of setting the attributes on the new decl.

PR c++/104669

gcc/cp/ChangeLog:

* decl.c (decls_match): Compare versions even if not recording.
(duplicate_decls): Propagate attributes to alias.
* decl2.c (find_last_decl): Give up if versioned.

gcc/testsuite/ChangeLog:

* g++.target/i386/mv31.C: New test.

[Bug c++/104669] [11 Regression] ICE in is_function_default_version, at attribs.cc:1219

2022-04-21 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104669

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|11.3|11.4

--- Comment #5 from Richard Biener  ---
GCC 11.3 is being released, retargeting bugs to GCC 11.4.