This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessor/2007: gcc has a segmentation fault with defines
- To: nobody at gcc dot gnu dot org
- Subject: Re: preprocessor/2007: gcc has a segmentation fault with defines
- From: Carlo Wood <carlo at alinoe dot com>
- Date: 16 Feb 2001 15:36:02 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: Carlo Wood <carlo at alinoe dot com>
The following reply was made to PR preprocessor/2007; it has been noted by GNATS.
From: Carlo Wood <carlo@alinoe.com>
To: siva@cis.ksu.edu
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: preprocessor/2007: gcc has a segmentation fault with defines
Date: Fri, 16 Feb 2001 16:36:43 +0100
On Fri, Feb 16, 2001 at 03:17:57PM -0000, siva@cis.ksu.edu wrote:
> >Release: version 2.96 20000731 (Red Hat Linux 7.0)
> >Description:
> declaring an array of size X where X has not been defined
> causes gcc to give a segmentation fault
It is my experience that this (redhat) 2.96 seg faults in
about 50% of the cases that one writes illegal code.
In most cases however it gives the error message so you
can easily work around it. When I run into a seg fault
like this I normally quickly try it with 2.97 and then
I never see a segfault. ("2.97" is the current 'unstable'
version in development (cvs)).
--
Carlo Wood <carlo@alinoe.com>