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]
Other format: [Raw text]

Re: [PATCH] Fix ICE in common_type (PR c/19342)


On Wed, 19 Jan 2005, Jakub Jelinek wrote:

> Ok to commit?  The testcase from c/19342 now works as well as the testcase
> below, but the latter only at -O0, as I have extended a testcase and
> apparently discovered further (likely unrelated) 2 bugs.
> Or should I commit just the c-typeck.c change and a testcase that ICEd,
> but now 100% works and create new PR for the new testcase that still ICEs
> on different places?

The patch is OK with a testcase that ICEd but now passes.  Please create a 
new PR or PRs for the other bugs, marked as regressions if appropriate, if 
they aren't already fixed.

> +  struct S s[2];

> +  s[2].d = A;

The execution tests shouldn't involve this out of bounds access, I suppose 
you meant s[1].d.  (Of course it's OK for an ICE test to make sure that 
such an out of bounds access compiles without ICE, just not for it to be 
on an executed path in an execution test.)

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


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