This is the mail archive of the gcc@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]

C++: decl with initialization


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?

-- Gaby


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