This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc 3.3.1 problem


  It seems that you aren't supposed to return internal automatic
references! :-)  The compiler should have warned but didn't.

--- Gerry Reno <grenoml@yahoo.com> wrote:
>   I'm having a problem with gcc 3.3.1.  Here is a sample program that
> demos the problem:
> 

<snip/> 

> XYZ * somefunc () {
>   XYZ xyz;
>   XYZ *ptr = &xyz;

  xyz and *ptr need to be either static or made global.

<snip/>



=====
Gerry Reno
mailto: grenoml at@ yahoo dot. com
(if mail bounces please retry later - spam rapidly fills up mailbox)

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]