C++ PATCH for c++/50870 (ICE with -> X::Y in a template default argument)
Paolo Carlini
paolo.carlini@oracle.com
Mon Nov 7 23:48:00 GMT 2011
On 11/07/2011 11:49 PM, Jason Merrill wrote:
> Dodji's work on template parameter lists of different lengths exposed
> a problem whereby we weren't handling partial instantiation of a
> COMPONENT_REF where the member is a SCOPE_REF. Fixed by not messing
> with it when the object is still dependent.
>
> Tested x86_64-pc-linux-gnu, applying to trunk.
Thanks. This also implies that we don't ICE anymore on c++/50864, we
just accept it, as uninstiantiated template. I guess being able to
reject it early at parsing time would still be a good idea, in general.
Paolo.
More information about the Gcc-patches
mailing list