https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98576
cqwrteur <unlvsur at live dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org, | |unlvsur at live dot com --- Comment #1 from cqwrteur <unlvsur at live dot com> --- OH NO!! #include<iostream> #include<source_location> int main() { std::cout<<std::source_location::current().file_name(); } ~ ~ cqwrteur@Home-Server:~/fast_io/.tmp$ g++ -o source2 source2.cc -Ofast -std=c++20 -s -flto -fexec-charset=IBM12712 cqwrteur@Home-Server:~/fast_io/.tmp$ ./source2 source2.cccqwrteur@Home-Server:~/fast_io/.tmp$