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]

Re: C++ PATCH: perform_implicit_conversion


>>>>> "Nathan" == Nathan Sidwell <nathan@acm.org> writes:

    Nathan> Hi, I've installed the attached patch under the obvious
    Nathan> fix rule. It stops cascading error messages from something
    Nathan> like,

    Nathan> struct A {}; void fn(const *) { if (A (1)) {} }

    Nathan> which would give an additional "could not convert
    Nathan> `{error}' to `bool'".

A better fix would just be to return immediately when EXPR Is the
error_mark_node; why bother trying to do the conversion?

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


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