http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49670
--- Comment #10 from Jeffrey Walton <noloader at gmail dot com> 2011-07-09 03:32:20 UTC --- (In reply to comment #8) > The included source compiles OK for me with: > > ~/gcc-build/gcc/cc1plus -quiet -O2 -m32 -g -fstack-protector -march=prescott > -mtune=prescott --param l1-cache-size=16 --param l1-cache-line-size=64 --param > l2-cache-size=1024 asn.ii > > Tried with: > GNU C++ (GCC) version 4.5.4 20110525 (prerelease) > GNU C++ (GCC) version 4.6.1 20110611 (prerelease) > GNU C++ (GCC) version 4.7.0 20110707 (experimental) > > The bug is either fixed or local to: > > g++ (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2 > > Please try to reproduce the bug with latest FSF compiler. Alternatively, > please > report the bug to Ubuntu. I just tried using Fedora 15, which offers GCC 4.6 - OK. Jeff [jeffrey@studio cryptopp]$ gcc --version gcc (GCC) 4.6.0 20110530 (Red Hat 4.6.0-9) Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [jeffrey@studio cryptopp]$ make g++ -DNDEBUG -g -O2 -march=native -pipe -c cryptlib_bds.cpp g++ -DNDEBUG -g -O2 -march=native -pipe -c hmac.cpp g++ -DNDEBUG -g -O2 -march=native -pipe -c hex.cpp g++ -DNDEBUG -g -O2 -march=native -pipe -c esign.cpp ... g++ -DNDEBUG -g -O2 -march=native -pipe -c asn.cpp g++ -DNDEBUG -g -O2 -march=native -pipe -c rw.cpp g++ -DNDEBUG -g -O2 -march=native -pipe -c cast.cpp g++ -DNDEBUG -g -O2 -march=native -pipe -c tiger.cpp ...