This is the mail archive of the
mailing list for the GCC project.
C++: decl with initialization
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: gcc at gcc dot gnu dot org
- Cc: mark at codesourcery dot com, jason at redhat dot com
- Date: 29 Jun 2003 23:18:56 +0200
- Subject: C++: decl with initialization
- Organization: Integrable Solutions
I have been studying the code in cp/decl.c:start_decl that handles
initial declarations. When a decl is initialized, the DECL_INITIAL is
set to error_mark_node instead of the true real initializer. Why and
what are the benefits doing that instead of using the true initializer?