This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ PATCH: PR 20103


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.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]