public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10539: g++ does not issue a warning on "int a = a + 1" statements.
@ 2003-04-29 14:10 gdr
  0 siblings, 0 replies; 2+ messages in thread
From: gdr @ 2003-04-29 14:10 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, invi, nobody

Synopsis: g++ does not issue a warning on "int a = a + 1" statements.

State-Changed-From-To: open->closed
State-Changed-By: gdr
State-Changed-When: Tue Apr 29 14:10:56 2003
State-Changed-Why:
    Duplicate of 10538. And synopsis is biased:  it is not
    "accepts illegal".

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


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

* c++/10539: g++ does not issue a warning on "int a = a + 1" statements.
@ 2003-04-29 14:06 invi
  0 siblings, 0 replies; 2+ messages in thread
From: invi @ 2003-04-29 14:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10539
>Category:       c++
>Synopsis:       g++ does not issue a warning on "int a = a + 1" statements.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          accepts-illegal
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 29 14:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Remo Inverardi
>Release:        g++-3.2.3
>Organization:
>Environment:
Debian SID
>Description:
The following code compiles without any warning:

void foo()
{
  int a = a + 1;
}

The variable "a" does not exist in the global name space, which means that the uninitialized local variable "a" is accessed. A warning like "access to uninitialized variable" would be appropriate.
>How-To-Repeat:
See description.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-04-29 14:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-29 14:10 c++/10539: g++ does not issue a warning on "int a = a + 1" statements gdr
  -- strict thread matches above, loose matches on Subject: below --
2003-04-29 14:06 invi

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