delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/08/02:07:06

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
From: "Alex Song" <alexs AT pdd DOT edmi DOT com DOT au>
To: <cygwin AT cygwin DOT com>
Subject: gcc bug, cygwin specific cygwin-1.3.10-1 gcc-2.95.3-5
Date: Fri, 8 Mar 2002 17:03:26 +1000
Message-ID: <001301c1c66f$57e1cd50$1501010a@alexs>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Importance: Normal

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;
}
--------------------------------------------

where as the following code does not:
-------------------------------------------
int notend;

int main ()
{
  notend = 1;

  return 0;
}
--------------------------------------------

it seems that the word "end" seems to do somethings differently. also if the
variable was declared as static (static int end) there are not problems with
that. hope you guys can help.

cheers,

alex

----------------------------------------------------------------------------
----
Alex Song
DESIGN ENGINEER
EDMI Product Development Division
alexs AT pdd DOT edmi DOT com DOT au
Ph : +61 7 3881 6443
FAX : +61 7 3881 6420


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