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

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


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.


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