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/