public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/5582: warn about using the extension "int x=x;"
@ 2003-01-08  1:12 bangerth
  0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2003-01-08  1:12 UTC (permalink / raw)
  To: coola, gcc-bugs, gcc-prs, nobody, pcarlini, aoliva, dewar

Old Synopsis: a warning to implement
New Synopsis: warn about using the extension "int x=x;"

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Tue Jan  7 17:12:05 2003
State-Changed-Why:
    The use of
      int x = x;
    is a gcc extension, but I could indeed not find a place in
    the manual that talks about a warning option that gives
    a message when this extension is used.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5582


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c/5582: warn about using the extension "int x=x;"
@ 2003-01-08 14:36 Wolfgang Bangerth
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Bangerth @ 2003-01-08 14:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c/5582; it has been noted by GNATS.

From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
Cc: pcarlini@unitus.it, <aoliva@redhat.com>, <dewar@gnat.com>,
   <gcc-gnats@gcc.gnu.org>, <coola@ngs.ru>, <gcc-bugs@gcc.gnu.org>,
   <bangerth@dealii.org>
Subject: Re: c/5582: warn about using the extension "int x=x;"
Date: Wed, 8 Jan 2003 08:24:46 -0600 (CST)

 > You get no error/warning, if you try to compile the code inside a
 > function, ie. "void foo() { int x=x; }".
 > But that's not a gcc extension, just a missing warning about the use of
 > an uninitialized variable.
 
 Sure. IIRC the extension is that this reliably calms down warnings about 
 uninitialized variables.
 
 W.
 
 -------------------------------------------------------------------------
 Wolfgang Bangerth             email:            bangerth@ticam.utexas.edu
                               www: http://www.ticam.utexas.edu/~bangerth/
 
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c/5582: warn about using the extension "int x=x;"
@ 2003-01-08 10:56 Volker Reichelt
  0 siblings, 0 replies; 3+ messages in thread
From: Volker Reichelt @ 2003-01-08 10:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c/5582; it has been noted by GNATS.

From: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
To: pcarlini@unitus.it, aoliva@redhat.com, dewar@gnat.com,
        gcc-gnats@gcc.gnu.org, coola@ngs.ru, gcc-bugs@gcc.gnu.org,
        bangerth@dealii.org
Cc:  
Subject: Re: c/5582: warn about using the extension "int x=x;"
Date: Wed, 8 Jan 2003 12:50:22 +0100

 Just for the sake of completeness:
 gcc issues an error if you just try to compile "int x=x;".
 
 You get no error/warning, if you try to compile the code inside a
 function, ie. "void foo() { int x=x; }".
 But that's not a gcc extension, just a missing warning about the use of
 an uninitialized variable.
 
 Regards,
 Volker
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5582
 
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-08 14:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-08  1:12 c/5582: warn about using the extension "int x=x;" bangerth
2003-01-08 10:56 Volker Reichelt
2003-01-08 14:36 Wolfgang Bangerth

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).