public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Alexandre Oliva <aoliva@redhat.com>
To: dewar@gnat.com (Robert Dewar)
Cc: guerby@acm.org, akpm@osdl.org, gcc@gcc.gnu.org,
	gdr@integrable-solutions.net, matz@suse.de,
	pinskia@physics.uc.edu
Subject: Re: missed uninitialised variable warning
Date: Mon, 04 Aug 2003 18:19:00 -0000	[thread overview]
Message-ID: <orn0epwarb.fsf@free.redhat.lsd.ic.unicamp.br> (raw)
In-Reply-To: <20030804180850.8095AF2D7C@nile.gnat.com>

On Aug  4, 2003, dewar@gnat.com (Robert Dewar) wrote:

>> In C and C++ it's legal, and there are actual cases in which you do
>> want to reference the variable (as an lvalue) before its declaration
>> is complete.

> Isn't that a bit dubious from a formal point of view.

I don't see why, and I've already given the example:

void *x = &x;

This must work, and I don't see anything possibly dubious about it.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer

  reply	other threads:[~2003-08-04 18:14 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-04 18:12 Robert Dewar
2003-08-04 18:19 ` Alexandre Oliva [this message]
2003-08-04 18:21 ` Gabriel Dos Reis
2003-08-04 18:28   ` Alexandre Oliva
2003-08-04 18:32     ` Gabriel Dos Reis
  -- strict thread matches above, loose matches on Subject: below --
2003-08-04 18:45 Robert Dewar
2003-08-04 19:09 ` Gabriel Dos Reis
2003-08-04 18:28 Robert Dewar
2003-08-04 18:36 ` Gabriel Dos Reis
2003-08-04 18:27 Robert Dewar
2003-08-04 18:33 ` Gabriel Dos Reis
2003-08-04 18:33 ` Alexandre Oliva
2003-08-04 19:51   ` Phil Edwards
2003-08-04  7:34 Andrew Morton
2003-08-04 12:09 ` Michael Matz
2003-08-04 12:35   ` Andrew Morton
2003-08-04 13:07   ` Alexandre Oliva
2003-08-04 13:39     ` Michael Matz
2003-08-04 13:52       ` Gabriel Dos Reis
2003-08-04 13:56         ` Michael Matz
2003-08-04 14:47           ` Andrew Pinski
2003-08-04 16:31             ` Andrew Pinski
2003-08-04 18:05               ` Laurent GUERBY
2003-08-04 18:09                 ` Alexandre Oliva
2003-08-04 18:44                   ` Laurent GUERBY
2003-08-04 16:34             ` Alexandre Oliva
2003-08-04 14:39       ` Alexandre Oliva

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=orn0epwarb.fsf@free.redhat.lsd.ic.unicamp.br \
    --to=aoliva@redhat.com \
    --cc=akpm@osdl.org \
    --cc=dewar@gnat.com \
    --cc=gcc@gcc.gnu.org \
    --cc=gdr@integrable-solutions.net \
    --cc=guerby@acm.org \
    --cc=matz@suse.de \
    --cc=pinskia@physics.uc.edu \
    /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).