C++ PATCH for c++/48500 (C++0x crash on non-type-dependent but non-constant call in template)

Jason Merrill jason@redhat.com
Fri Apr 8 02:17:00 GMT 2011


constexpr fallout.  In fold_non_dependent_expr, we determined that the 
expression is not type-dependent, is potentially constant, and is not 
value-dependent, so we try to fold it.  But it isn't potentially 
constant.  So this patch fixes that determination.

Tested x86_64-pc-linux-gnu, applying to trunk and 4.6 (regression).
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 48500.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110408/0203a05d/attachment.ksh>


More information about the Gcc-patches mailing list