This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ comp_cdtor FUNCTION_DECL tree nodes with DECL_LANG_SPECIFIC but no DECL_CONTEXT: valid or not?
- From: Jason Merrill <jason at redhat dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 19 Nov 2009 17:47:52 -0500
- Subject: Re: C++ comp_cdtor FUNCTION_DECL tree nodes with DECL_LANG_SPECIFIC but no DECL_CONTEXT: valid or not?
- References: <4B03EF94.1050305@gmail.com>
On 11/18/2009 07:59 AM, Dave Korn wrote:
Is it valid for the context to be NULL here?
It doesn't make sense to have a [cd]tor with null DECL_CONTEXT, but
dump_function_decl should probably be more resilient, for use during
debugging when things may be in an intermediate state.
Jason