C++ PATCH for c++/54359 ('this' in trailing-return-type with out-of-class method defn)

Jason Merrill jason@redhat.com
Thu Mar 21 03:20:00 GMT 2013


On 03/17/2013 11:45 PM, Jason Merrill wrote:
> This patch caused c++/56639: when within a function we were trying to
> parse something that could be either a declaration or an expression, we
> went to set current_class_ptr and failed the assertion that it wasn't
> already set.  We could save and restore the value

...and now this PR comes along that shows that we really do need to save 
and restore the value.

Tested x86_64-pc-linux-gnu, applying to trunk, and branches later.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 56646.patch
Type: text/x-patch
Size: 1425 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130321/870f6dc5/attachment.bin>


More information about the Gcc-patches mailing list