https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83102
Ian Lance Taylor changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83102
--- Comment #8 from ian at gcc dot gnu.org ---
Author: ian
Date: Wed Nov 22 15:18:43 2017
New Revision: 255062
URL: https://gcc.gnu.org/viewcvs?rev=255062&root=gcc&view=rev
Log:
compiler: make comparison operator() methods const
This is
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83102
--- Comment #7 from Jonathan Wakely ---
Created attachment 42679
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42679&action=edit
Patch to make comparisons work on const objects.
Parse::Enclosing_var_comparison::operator() needs a fix too.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83102
--- Comment #6 from Jonathan Wakely ---
Author: redi
Date: Wed Nov 22 11:06:15 2017
New Revision: 255052
URL: https://gcc.gnu.org/viewcvs?rev=255052&root=gcc&view=rev
Log:
PR go/83102 relax std::set checks for invocable comparison object
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83102
--- Comment #5 from Jonathan Wakely ---
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