[ET Trac] [Einstein Toolkit] #1121: gcc 4.6+ compiler bug for isnan

Einstein Toolkit trac-noreply at einsteintoolkit.org
Mon Oct 15 11:23:06 CDT 2012


#1121: gcc 4.6+ compiler bug for isnan
---------------------+------------------------------------------------------
 Reporter:  sbrandt  |       Owner:  eschnett           
     Type:  defect   |      Status:  new                
 Priority:  minor    |   Milestone:  ET_2012_11         
Component:  Carpet   |     Version:  development version
 Keywords:           |  
---------------------+------------------------------------------------------
 It seems that gcc 4.6 and up has a problem with compiling the isnan
 function.

 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48891

 I find that simply referring to the namespace explicitly solves it.

 I had to make similar changes in Carpet/CarpetLib/src/defs.hh, but there I
 had to fix isinf as well. Probably the isnormal, copysign, etc. functions
 should get std:: for consistency.

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1121>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list