As an addition to my original post: for example, #include <iostream> #include <limits>
int main() { unsigned int maxi = std::numeric_limits<unsigned int>::max(); maxi++; std::cerr << "Value of maxi after sum: " << maxi << std::endl; return 0; } after compiled with or with -ftrapv g++ generates binary executables which are exactly the same: [EMAIL PROTECTED] ~ $ g++ -o ftrapvw ftrapv.cc [EMAIL PROTECTED] ~ $ g++ -ftrapv -o ftrapv ftrapv.cc [EMAIL PROTECTED] ~ $ md5sum ftrapv fa2b15c2dccf7d721ae883cea1e5190e ftrapv [EMAIL PROTECTED] ~ $ md5sum ftrapvw fa2b15c2dccf7d721ae883cea1e5190e ftrapvw What's the problem after all? Cheers, Paulo Matos _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus