|
From: | Mike Miller |
Subject: | [Octave-bug-tracker] [bug #54217] Build fails with error: call of overloaded ‘pow(int,int)’ is ambiguous |
Date: | Sun, 1 Jul 2018 17:24:56 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 |
Follow-up Comment #7, bug #54217 (project octave): I don't understand this last error. There is a section of code, admittedly marked with a "FIXME" comment meaning that it is not an ideal solution, that explicitly declares 'abs' overloads to operate on all signed and unsigned integer types. Your compiler is saying that a later call to 'abs' in the same file is ambiguous. I'm not sure what to do about that. This may be a template overload resolution problem that has been fixed in later versions of GCC. Or it may be specific to GCC on Solaris. I guess you could try something like the attached patch, does that get you past this error? (file #44481) _______________________________________________________ Additional Item Attachment: File name: abs.diff Size:3 KB _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?54217> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |