C++ PATCH to constexpr loops and SAVE_EXPR

Jason Merrill jason@redhat.com
Fri Mar 4 22:02:00 GMT 2016


This patch addresses a significant wrong-code issue with constexpr 
loops: the value of a SAVE_EXPR was being cached across iterations, so 
an increment would only happen once.

Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: save-loop.patch
Type: text/x-patch
Size: 3572 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160304/9bf26228/attachment.bin>


More information about the Gcc-patches mailing list