octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #51767] Convenience function ovl() may be caus


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #51767] Convenience function ovl() may be causing compilation error
Date: Wed, 16 Aug 2017 15:06:42 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

URL:
  <http://savannah.gnu.org/bugs/?51767>

                 Summary: Convenience function ovl() may be causing
compilation error
                 Project: GNU Octave
            Submitted by: sebald
            Submitted on: Wed 16 Aug 2017 07:06:41 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Build Failure
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I'm seeing a compilation error (using configure --without-osmesa
--no-recursion):


  CXX      libinterp/corefcn/libinterp_corefcn_libcorefcn_la-fft.lo
  CXX      libinterp/corefcn/libinterp_corefcn_libcorefcn_la-fft2.lo
  CXX      libinterp/corefcn/libinterp_corefcn_libcorefcn_la-fftn.lo
  CXX      libinterp/corefcn/libinterp_corefcn_libcorefcn_la-file-io.lo
  CXX      libinterp/corefcn/libinterp_corefcn_libcorefcn_la-filter.lo
In file included from libinterp/builtin-defun-decls.h:8:0,
                 from
/home/sebald/octave/octave/octave/libinterp/corefcn/file-io.cc:63:
/home/sebald/octave/octave/octave/libinterp/octave-value/ovl.h: In
instantiation of 'octave_value_list ovl(const OV_Args& ...) [with OV_Args =
{octave_value_list}]':
/home/sebald/octave/octave/octave/libinterp/corefcn/file-io.cc:1003:45:  
required from here
/home/sebald/octave/octave/octave/libinterp/octave-value/ovl.h:192:76: error:
converting to 'octave_value' from initializer list would use explicit
constructor 'octave_value::octave_value(const octave_value_list&)'
   return octave_value_list (std::initializer_list<octave_value>
({args...}));
                                                                            ^
  CXX      libinterp/corefcn/libinterp_corefcn_libcorefcn_la-find.lo
make[2]: *** [libinterp/corefcn/libinterp_corefcn_libcorefcn_la-file-io.lo]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/usr/local/src/octave/octave/build5'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/octave/octave/build5'
make: *** [all] Error 2


This probably has to do with the recent template expansions and appears to
have something to do with this convenience function:


//! Construct an octave_value_list with less typing.
/*!
  Historically, this made it easier to create an octave_value_list
  from multiple octave_value arguments.  It is no longer useful since
  octave_value_list has now a constructor accepting an initializer_list
  so all it does is save some typing.  The following are equivalent:

  @code{.cc}
  return octave_value_list ({ov0, ov1, ov2});
  return ovl (ov0, ov1, ov2);
  @endcode
*/
template<typename... OV_Args>
inline octave_value_list
ovl (const OV_Args&... args)
{
  return octave_value_list (std::initializer_list<octave_value> ({args...}));
}





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51767>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]