Created attachment 58114 [details] Testcase The attached reduced test case produces the following warning: test.cpp:6:43: warning: value computed is not used [-Wunused-value] 6 | std::string_view prefix("<prefix>"); When compiling with: -Wall -std=c++20 -O2 I see the warning when building for 32-bit ARM but not x86-64. There is no warning with GCC 13.2.0. Also seen with godbolt on "trunk": https://godbolt.org/z/GvbMMsfch
This looks related to constructor return this where with ARM EABI constructors (and deconstructors return this) and we produce: <<cleanup_point <<< Unknown tree: expr_stmt prefix = {._M_len=8, ._M_str=(const char *) "<prefix>"}, (struct basic_string_view *) &prefix >>>>>; Note "this" of &prefix is there. Let me try to reduce this a little bit. I might not get to it until week after next though.