public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Haley <aph@redhat.com>
To: gcc-help@gcc.gnu.org
Subject: Re: Questions before submitting a bug report
Date: Tue, 03 Jan 2012 15:25:00 -0000	[thread overview]
Message-ID: <4F031DCA.1040709@redhat.com> (raw)
In-Reply-To: <B6A6EF22B0D16146BD127139E7667DDB1625D00DE0@hermes.corp.yager.de>

On 01/03/2012 03:23 PM, Markus Henschel wrote:
> 
> 
>> -----Original Message-----
>> From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
>> Behalf Of Andrew Haley
>> Sent: Dienstag, 3. Januar 2012 16:06
>> To: gcc-help@gcc.gnu.org
>> Subject: Re: Questions before submitting a bug report
>>
>> 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.
> 
> But it's a static variable.

My apologies.  I posted too soon.

Andrew.

  reply	other threads:[~2012-01-03 15:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-03 15:02 Markus Henschel
2012-01-03 15:06 ` Andrew Haley
2012-01-03 15:23   ` Markus Henschel
2012-01-03 15:25     ` Andrew Haley [this message]
2012-01-03 15:26 ` Andrew Haley
2012-01-03 15:39   ` Markus Henschel
2012-01-03 15:52     ` Andrew Haley
2012-01-04 10:08       ` Markus Henschel
2012-01-05 23:00         ` Kalle Olavi Niemitalo
2012-01-03 16:55 ` Jonathan Wakely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F031DCA.1040709@redhat.com \
    --to=aph@redhat.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).