delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/08/11:09:17

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 8 Mar 2002 11:06:11 -0500
From: Christopher Faylor <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: gcc bug, cygwin specific cygwin-1.3.10-1 gcc-2.95.3-5
Message-ID: <20020308160611.GI32086@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <001301c1c66f$57e1cd50$1501010a AT alexs>
Mime-Version: 1.0
In-Reply-To: <001301c1c66f$57e1cd50$1501010a@alexs>
User-Agent: Mutt/1.3.23.1i

On Fri, Mar 08, 2002 at 05:03:26PM +1000, Alex Song wrote:
>hi,
>
>i think i have found a bug, either that or i am very stupid. the bug is a
>gcc bug and it is cygwin specific (cygwin-1.3.10-1 gcc-2.95.3-5) and the
>following code causes a seg fault:
>-------------------------------------------
>int end;
>
>int main ()
>{
>  end = 1;
>
>  return 0;
>}
>--------------------------------------------

The global 'end' is a reserved word.  It refers to the end of the data
area.  That means you can't use it as a global variable in your program.

cgf
--
Please do not send me personal email with cygwin questions.
Use the resources at http://cygwin.com/ .

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019