This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/22203] New: std::numeric_limits<int>::traps is wrong on PPC
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Jun 2005 18:32:44 -0000
- Subject: [Bug libstdc++/22203] New: std::numeric_limits<int>::traps is wrong on PPC
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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