C++ PATCH for c++/48003 (allow integer overflow in template args with -fpermissive)

Jason Merrill jason@redhat.com
Tue Mar 8 05:22:00 GMT 2011


This patch changes convert_nontype_argument to defer to 
cxx_constant_value on whether or not to go ahead with a semi-constant 
template argument, and whether or not to give a diagnostic.  Making this 
change revealed a bug in potential_constant_expression_1, which was 
failing to check for overflow.

Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 48003.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110308/eb226ef2/attachment.ksh>


More information about the Gcc-patches mailing list