https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105852 --- Comment #1 from David Binderman <dcb314 at hotmail dot com> --- Reduced C++ code seems to be: template <class> struct Local { friend Local False(int *); }; Local<int> source_map_url; Local<int> False(int *); void New() { False; } Local<int> False(int *) {}