[Bug c++/118513] ICE with modules and structured binding using std::tuple*

2025-01-17 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118513 --- Comment #5 from Jason Merrill --- (In reply to Nathaniel Shead from comment #4) > Confirmed. Without having looked into it too much I think maybe doing > `varpool_node::finalize_decl` might be the way to go to cover this and any > other rel

[Bug c++/118513] ICE with modules and structured binding using std::tuple*

2025-01-16 Thread nshead at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118513 Nathaniel Shead changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/118513] ICE with modules and structured binding using std::tuple*

2025-01-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118513 --- Comment #3 from Jakub Jelinek --- Or of course if something like that isn't appropriate for all copy_linkage uses (other than structured bindings it is used for guard variables I think), then cp_finish_decomp could do that.

[Bug c++/118513] ICE with modules and structured binding using std::tuple*

2025-01-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118513 --- Comment #2 from Jakub Jelinek --- --- gcc/cp/decl2.cc.jj 2025-01-16 13:34:29.719360710 +0100 +++ gcc/cp/decl2.cc 2025-01-16 14:27:54.095464791 +0100 @@ -3656,6 +3656,8 @@ copy_linkage (tree guard, tree decl) comdat_linkage (guar

[Bug c++/118513] ICE with modules and structured binding using std::tuple*

2025-01-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118513 --- Comment #1 from Jakub Jelinek --- Note, on the structured binding base VAR_DECL, DECL_INTERFACE_KNOWN has been set in #0 constrain_visibility (decl=, visibility=4, tmpl=false) at ../../gcc/cp/decl2.cc:2815 #1 0x005962ad in determin