The followign program should not abort on PPC because PPC has no trapping 
instructions integer 
division instruction.
#include <limits>
extern "C" void abort(void);

int main(void)
{
  if ( std::numeric_limits<int>::traps)
   abort ();
}

-- 
           Summary: std::numeric_limits<int>::traps is wrong on PPC
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc*-*-*


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

Reply via email to