https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118587
--- Comment #3 from Basile Starynkevitch <basile at starynkevitch dot net> --- I believe that the patch could be simple: In file gcc/jit-recording.h at end of class location (e.g. before line 526 of gcc-14.2.0/gcc/jit-recording.h or before line 583 of gcc-15-20230105/gcc/jit-recording.h) add the following untested C++ lines (and member functions) public: const std::string get_filename() const { if (m_filename) return std::string(m_filename); else return std::string(""); }; int get_line() const { return m_line; }; int get_column() const { return m_columns; }; bool is_created_by_user const { return m_created_by_user }; Once this patch has been added, implementing the C function is easy. Regards. Basile Starynkevitch <bas...@starynkevitch.net> 92340 Bourg-la-Reine, France