[Bug c++/95686] undefined reference to static local variable within inline function

2023-03-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95686 --- Comment #9 from Andrew Pinski --- (In reply to Andrew Pinski from comment #6) > Note this code ICEs with LTO turned on also. The ICE is: during IPA pass: modref rls6o5bx.cpp:10:1: internal compiler error: in get_partitioning_class, at

[Bug c++/95686] undefined reference to static local variable within inline function

2023-03-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95686 --- Comment #8 from Andrew Pinski --- Note the testcase is very similar to clang's test/SemaTemplate/instantiate-static-local.cpp testcase.

[Bug c++/95686] undefined reference to static local variable within inline function

2023-03-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95686 --- Comment #7 from Andrew Pinski --- *** Bug 109185 has been marked as a duplicate of this bug. ***

[Bug c++/95686] undefined reference to static local variable within inline function

2021-10-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95686 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code, lto --- Comment #6

[Bug c++/95686] undefined reference to static local variable within inline function

2021-10-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95686 Andrew Pinski changed: What|Removed |Added CC||asolokha at gmx dot com --- Comment #5

[Bug c++/95686] undefined reference to static local variable within inline function

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95686 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/95686] undefined reference to static local variable within inline function

2020-06-16 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95686 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/95686] undefined reference to static local variable within inline function

2020-06-16 Thread leni536 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95686 --- Comment #2 from Lénárd Szolnoki --- I failed to mention that I compiled the example in -std=c++17. With this compiler option it compiles but fails to link in gcc. It compiles, links and runs as expected in clang. The linkage requirement for

[Bug c++/95686] undefined reference to static local variable within inline function

2020-06-16 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95686 Richard Biener changed: What|Removed |Added Version|11.0|9.3.0 Ever confirmed|0