This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: Fix PR tree-optimization/16876
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Joern RENNECKE <joern dot rennecke at st dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 25 Aug 2006 18:20:19 +0000 (UTC)
- Subject: Re: RFA: Fix PR tree-optimization/16876
- References: <44EF3BD7.9060200@st.com>
On Fri, 25 Aug 2006, Joern RENNECKE wrote:
> gcc:
> PR tree-optimization/16876
> * c-typeck.c (c_convert_parm_for_inlining): Don't take early
> exit if PARM doesn't match VALUE.
>
> testsuite:
> gcc.dg/noncompile/pr16876.c: New test.
The testcase is in fact valid code (only undefined at runtime) which
should be compiled, but an error is better than an ICE here. The patch is
OK provided you open a new bug for the problem that such code should be
accepted (probably with a warning, but not with a hard error), referencing
<http://gcc.gnu.org/ml/gcc-patches/2004-10/msg00772.html>.
--
Joseph S. Myers
joseph@codesourcery.com