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

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

[Octave-bug-tracker] [bug #40436] median no longer passes make check


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #40436] median no longer passes make check
Date: Wed, 06 Nov 2013 23:36:04 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130810 Firefox/17.0 Iceweasel/17.0.8

Follow-up Comment #52, bug #40436 (project octave):

Unfortunately, I don't think it is possible to redefine a template simply by
doing something like


#include <some_header_that_defines_template_foo>

template <class T> foo (...) { }


The only way I know to do this is to get the compiler to see our replacement
version of <some_header_that_defines_template_foo> instead of the system
version.  It is possible to do that, but it seems somehow unpleasant to me
because now Octave is distributing a header file from a specific version of
GCC.  And we have to continue distributing that file as long as someone
somewhere might be compiling with GCC 4.8.1.

OTOH, since the template is defined in the bits/stl_algo.h header file, it is
possible for users (sysadmins) to fix this problem simply by editing the
affected header file and making two trivial changes (in two locations, they
need to change a '2' to a '1').  There is no need to recompile GCC or install
different packages.  Now, I suppose some sysadmins will object to doing this
since it alters some system files.  But that just seems stupid to me.  This is
not some random fix that we picked up from some blog somewhere that we are
suggesting.  It is a change that is already in the GCC source tree.



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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