C++ PATCH for c++/66387 (error with lambda and constexpr array)
Jason Merrill
jason@redhat.com
Tue Jun 16 15:06:00 GMT 2015
On 06/10/2015 09:01 AM, Jason Merrill wrote:
> My change to rationalize the *_constant_value functions broke this
> testcase, because we were no longer replacing the reference to the array
> with its constant value. Fixed by using maybe_constant_value instead.
We need to deal with this properly in tsubst_copy, as well. Fixed by
calling process_outer_var_ref.
Tested x86_64-pc-linux-gnu, applying to trunk and 5.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 66387.patch
Type: text/x-patch
Size: 5321 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150616/45aaed63/attachment.bin>
More information about the Gcc-patches
mailing list