C++ PATCH for c++/55879 (constexpr confusion with invisible references)

Jason Merrill jason@redhat.com
Wed Feb 13 17:24:00 GMT 2013

In this PR, the constexpr evaluator was confused by a parameter that 
changed to a reference type after the constant expression body was saved 
for later evaluation; we ended up trying to evaluate an address of an 
address, since we added one address on the caller side to pass to the 
invisible reference and another on the callee side to pass the value 
parameter to a reference parameter.  Fixed by stripping the reference on 
the caller side.

Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 55879.patch
Type: text/x-patch
Size: 2056 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130213/1b0017d4/attachment.bin>

More information about the Gcc-patches mailing list