C++ PATCH: PR 20103

Mark Mitchell mark@codesourcery.com
Thu May 25 22:25:00 GMT 2006


Jakub Jelinek wrote:
> On Thu, May 25, 2006 at 01:25:57PM -0700, Mark Mitchell wrote:
>>   var = create_temporary_var ();
>>   /* Tell finish_decl that it's OK to initialize this variable.  */
>>   DECL_INITIAL (var) = error_mark_node;
>>   /* Process the initializer.  */
>>   finish_decl (var, init);
>>
>> Blech!  So, now, error_mark_node always means erroneous initializer.
> 
> That could very well fix PR27129 as well (which failed exactly because of
> the error_mark_node in DECL_INITIAL (var), although the initializer wasn't
> really errorneous, just not yet set.  Will try tomorrow.

It does indeed seem to pass for me now, but I shall let you confirm and
adjust Bugzilla, in case I'm not testing it right.  If it does not pass
on mainline, please remove 4.2 from the list of affected versions, and
put a link to PR 20103 in the audit trail.

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list