C++ PATCH for c++/47301 (ICE with constexpr, array and -fabi-version=1)

Jason Merrill jason@redhat.com
Thu Mar 17 02:30:00 GMT 2011


The code for backwards-compatibility with ABI v1 didn't do too well with 
the case of a literal class used as an array bound; it built up an 
integral MINUS_EXPR with it directly, which doesn't make much sense. 
But since 3.2 didn't support constexpr, we can just disable the v1 
semantics when we are dealing with a literal class.

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


More information about the Gcc-patches mailing list