Re: GCC 6 and polymake

2016-02-16 Thread Jerry James
On Tue, Feb 16, 2016 at 3:43 AM, Jonathan Wakely
 wrote:
> I'll take a look.

Thank you Jonathan.
-- 
Jerry James
http://www.jamezone.org/
--
devel mailing list
devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org


Re: GCC 6 and polymake

2016-02-16 Thread Jonathan Wakely

On 15/02/16 20:13 -0700, Jerry James wrote:

Would one of you C++ experts help me out with a polymake build failure with
gcc 6?  Polymake defines a Vector class in lib/core/include/Vector.h (also
see lib/core/include/GenericVector.h).  Unlike with gcc 5 and earlier,
everywhere in the code that something like this is done:

Vector x = ...;
Vector y = ..;
const Vector z = x + y;

where + can be one of several operators defined for the Vector class, gcc
errors like this:

error: invalid initialization of non-const reference of type
'pm::Vector&' from an rvalue of type 'pm::Vector'

I assume the error refers to the temporary created by the operator.  I've
added -std=gnu++98 to CXXFLAGS, but that doesn't help.  I guess that the
Vector class is missing something needed by gcc 6, but I don't know what
that something might be.  Any hints are much appreciated.

See http://koji.fedoraproject.org/koji/taskinfo?taskID=12969245 for an
example build showing the error.


I'll take a look.
--
devel mailing list
devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org


GCC 6 and polymake

2016-02-15 Thread Jerry James
Would one of you C++ experts help me out with a polymake build failure with
gcc 6?  Polymake defines a Vector class in lib/core/include/Vector.h (also
see lib/core/include/GenericVector.h).  Unlike with gcc 5 and earlier,
everywhere in the code that something like this is done:

Vector x = ...;
Vector y = ..;
const Vector z = x + y;

where + can be one of several operators defined for the Vector class, gcc
errors like this:

error: invalid initialization of non-const reference of type
'pm::Vector&' from an rvalue of type 'pm::Vector'

I assume the error refers to the temporary created by the operator.  I've
added -std=gnu++98 to CXXFLAGS, but that doesn't help.  I guess that the
Vector class is missing something needed by gcc 6, but I don't know what
that something might be.  Any hints are much appreciated.

See http://koji.fedoraproject.org/koji/taskinfo?taskID=12969245 for an
example build showing the error.

Thank you,
-- 
Jerry James
http://www.jamezone.org/
--
devel mailing list
devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org