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]

[C++ PATCH for 3.4/4.0] Fix PR18123 (check error_mark_node in pushtag)


Hi

This is a case of checking for 'error_mark_node' in 'pushtag'.
'maybe_process_template_type_declaration' may return 'error_mark_node'
which should not be pushed into the scope in later pushdecl_* functons.
However, we cannot return immediately as the caller will use the
type node for further processing.  So we need to keep the type node
consistent by setting its TYPE_STUB_DECL.

Tested on i686-pc-linux-gnu.  OK for the mainline and 3.4 (after 3.4.3
is released)?

--Kriang

Attachment: diff34-temp-enum
Description: application/java-vm


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