C++ PATCH for c++/41119, 41120

Jason Merrill jason@redhat.com
Wed Aug 19 21:12:00 GMT 2009


On 08/19/2009 01:25 PM, Jason Merrill wrote:
> Synthesizing in the middle of a default argument was problematic because
> we don't want to run the garbage collector in the middle of overload
> resolution, because the overload candidates aren't marked for GC.
> cp_parser_default_argument dealt with this by setting function_depth
> around parsing of the default argument, but that didn't cover the case
> of synthesizing for initializing a namespace-scope variable. But if
> synthesis is the problem, we should set function_depth while
> synthesizing, not around the larger scope.
>
> Tested x86_64-pc-linux-gnu, applied to trunk.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 41120.patch
Type: text/x-patch
Size: 2607 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090819/e6d15b81/attachment.bin>


More information about the Gcc-patches mailing list