Re: c/8730: [3.2/3.3/3.4 regression] Cannot compile C function inside other C function

Janis Johnson <[email protected]>
Newsgroups gmane.comp.gcc.bugs,gmane.comp.gcc.prs
Message-ID <[email protected]>
The fix went in on March 31, but your compiler is a prerelease version
from Feburary 26 (20030226 in the version is the date).  The GCC 3.3
release includes the fix, and I verified that the current 3.3 branch
compiles your original test case.

Janis

On Mon, Jun 30, 2003 at 11:18:28AM +0200, Ilgis Ibragimow wrote:
> Hi,
> 
> I got a new release of gcc version 3.3 20030226 (prerelease) (SuSE Linux)
> and observe an interesting thing:
> 
> this short example with "foo" functions compiles fine, but my source
> still produce the following error:
> 
> *********************************************************
> gcc: Internal error: Segmentation fault (program cc1)
> Please submit a full bug report.
> See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
> *********************************************************
> 
> so, please, would you be so kind to mark my bug as:
> 
> 1) not the same as the bug 9936;
> 2) mark this please, as NOT FIXED.
> 
> Sincerely
> 
> Dr. Ilghiz Ibraghimov
> 
> 
> Janis Johnson wrote:
> 
> > On Tue, Apr 01, 2003 at 11:08:39AM +0200, Steven Bosscher wrote:
> > > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8730
> > >
> > > I cannot reproduce this PR anymore.   The testcase,
> > >
> > >     void foo()
> > >     {
> > >       void* bar(int i, int A[1][i]) { return A[0]; }
> > >     }
> > >
> > > compilers fine for me with today's CVS (3.3 20030401).  Could it be
> > > that this PR got fixed with Mark Mitchell's patch for 9936?
> > > (http://gcc.gnu.org/ml/gcc-patches/2003-04/msg00018.html)
> >
> > My regression hunting scripts verify that this patch fixes
> > the problem.  I used the original larger test case on
> > i686-pc-linux-gnu.
> >
> > Janis
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.