herwig is hosted by Hepforge, IPPP Durham
close Warning: Can't synchronize with repository "(default)" (Repository path '/hepforge/hg/herwig/public/herwig' does not exist.). Look in the Trac log for more information.

Ticket #4: ThePEG_gcc6_failed.patch

File ThePEG_gcc6_failed.patch, 1.0 KB (added by new, 8 years ago)

ThePEG_gcc6_failed.patch to bypass failure

  • Config/std.h

    From: Michel Normand <normand@linux.vnet.ibm.com>
    Subject: ThePEG gcc6 failed
    Date: Thu, 16 Jun 2016 10:58:11 +0200
    
    to avoid compilation error with gcc6 now default compiler for TW
    ===
    [  355s] In file included from FastJetFinder.cc:27:0:
    [  355s] ../include/ThePEG/Persistency/PersistentOStream.h: In member function 'ThePEG::PersistentOStream& ThePEG::PersistentOStream::operator<<(double)':
    [  355s] ../include/ThePEG/Persistency/PersistentOStream.h:222:17: error: 'isnan' was not declared in this scope
    [  355s]      if ( isnan(d) || isinf(d) )
    ===
    
    Signed-off-by: Michel Normand <normand@linux.vnet.ibm.com>
    ---
     Config/std.h |    2 ++
     1 file changed, 2 insertions(+)
    
    old new using std::mem_fun; 
    106106using std::sqrt;
    107107//using std::pow;
    108108using std::atan2;
     109using std::isnan;
     110using std::isinf;
    109111
    110112/** Powers - standard or non-standard */
    111113template <class ExponentT>