[Bug c++/52654] [C++11] Warn on overflow in user-defined literals

3dw4rd at verizon dot net gcc-bugzilla@gcc.gnu.org
Fri Apr 6 04:52:00 GMT 2012


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

--- Comment #10 from Ed Smith-Rowland <3dw4rd at verizon dot net> 2012-04-06 04:52:13 UTC ---
I made the warnings on by default.  Any opinion on whether I should have made
them depend on OPT_Woverflow instead?

I guess I thought the warning is slightly different in this case than the case
of just a regular numeric literal because the warning might cause the
programmer to examine a different type of operator as a solution - say template
or raw.

Still regtesting.



More information about the Gcc-bugs mailing list