This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12566] New: ugly ERROR_MARK use
- From: "nathan at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Oct 2003 08:42:37 -0000
- Subject: [Bug c++/12566] New: ugly ERROR_MARK use
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12566
Summary: ugly ERROR_MARK use
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: nathan at gcc dot gnu dot org
ReportedBy: nathan at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
> Two, the C++ frontend uses build (ERROR_MARK, type) in cp_fname_init. This
> is horrible, but I haven't gotten around to fixing it yet. Nathan, what is
> the point of doing that rather than just leaving DECL_INITIAL null?
I think it must be something about it being an initializer for a constant.
Without the init, something else complains. We should be able to be cleaner
by making a better 'magic' initializer with some kind of dependent value.