Questions before submitting a bug report

Andrew Haley aph@redhat.com
Tue Jan 3 15:06:00 GMT 2012


On 01/03/2012 03:02 PM, Markus Henschel wrote:
> struct Foo * foo_instance()
> {
> 	static struct Foo foo;
> 	return &foo;
> }

Uh, no.  You can't return a reference to a local
variable.

Andrew.



More information about the Gcc-help mailing list