https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83102

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This is the fix for the Go frontend (untested, but obviously correct):

--- a/gcc/go/gofrontend/gogo.h
+++ b/gcc/go/gofrontend/gogo.h
@@ -117,7 +117,7 @@ class Import_init
 // For sorting purposes.

 struct Import_init_lt {
-  bool operator()(const Import_init* i1, const Import_init* i2)
+  bool operator()(const Import_init* i1, const Import_init* i2) const
   {
     return i1->init_name() < i2->init_name();
   }

Reply via email to