[Bug c++/12566] New: ugly ERROR_MARK use

nathan at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Oct 10 08:42:00 GMT 2003

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.


           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.

More information about the Gcc-bugs mailing list