[Boost-bugs] [Boost C++ Libraries] #998: prg_exec_fail2 fail on ppc

Subject: [Boost-bugs] [Boost C++ Libraries] #998: prg_exec_fail2 fail on ppc
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-05-27 12:34:40


#998: prg_exec_fail2 fail on ppc
----------------------------+-----------------------------------------------
 Reporter: troy | Owner:
     Type: Patches | Status: new
Milestone: | Component: test
  Version: release 1.34.0 | Severity: Problem
 Keywords: |
----------------------------+-----------------------------------------------
 prg_exec_2 fails on darwin/ppc... never heard of this before but the ppc
 doesn't throw a floating point exception on the divide-by-zero. Patch:

 int cpp_main( int, char *[] ) // note the name
 {
 #if defined(__APPLE__) && defined(__ppc__)
   printf("The ppc doesn't throw on divice-by-zero. No check.\n");
   return 1;
 #else
   int div = 0;
   return 10 / div;
 #endif
 }

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/998>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:55 UTC