[Bug c++/120097] source_location line is wrong when used in an initializer list

2025-05-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120097 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2025-05-04 Status|UNCONFIRM

[Bug c++/120097] source_location line is wrong when used in an initializer list

2025-05-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120097 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/120097] source_location line is wrong when used in an initializer list

2025-05-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120097 --- Comment #3 from Andrew Pinski --- Created attachment 61298 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61298&action=edit Reduced testcase for the diagnostic issue GCC gives for this: ``` :8:6: error: could not convert '()' from ''

[Bug c++/120097] source_location line is wrong when used in an initializer list

2025-05-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120097 --- Comment #2 from Andrew Pinski --- Created attachment 61297 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61297&action=edit Reduced testcase

[Bug c++/120097] source_location line is wrong when used in an initializer list

2025-05-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120097 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic, wrong-code --- Comment #1 f