This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: perform_implicit_conversion
- To: nathan at cs dot bris dot ac dot uk, nathan at acm dot org
- Subject: Re: C++ PATCH: perform_implicit_conversion
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Fri, 17 Sep 1999 08:26:52 -0700
- Cc: egcs-patches at egcs dot cygnus dot com
- Organization: CodeSourcery, LLC
- References: <37E21F99.476D0193@acm.org>
>>>>> "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