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 PR c/25875: ICE on invalid compound initializer


On Fri, 21 Apr 2006, Volker Reichelt wrote:

> On 21 Apr, Joseph S. Myers wrote:
> > On Fri, 21 Apr 2006, Volker Reichelt wrote:
> > 
> >> The segfault happens in digest_init in c-typeck.c, because the
> >> parameter init is the null-pointer. There are some sanity-checks
> >> at the beginning of digest_init, but none for init being 0.
> >> The patch below fixes the problem by also checking for this condition.
> >> 
> >> Bootstrapped and regtested on x86_64-unknown-linux-gnu.
> >> Ok for mainline?
> > 
> > OK.
> 
> I forgot to mention that the bug is a 4.1/4.2 regression.
> Ok for the 4.1 branch, too?

Yes.

-- 
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]