public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23679] New: c++ "is used uninitialized" warning on arrays hard to read
@ 2005-09-01 15:57 benoit dot hudson at gmail dot com
2005-09-01 15:59 ` [Bug c++/23679] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: benoit dot hudson at gmail dot com @ 2005-09-01 15:57 UTC (permalink / raw)
To: gcc-bugs
cat > foo.c << EOF
int main() {
int f[2];
f[0] = 4;
return f[1];
}
EOF
ln -s foo.c foo.cpp
gcc foo.c -Wall -O2
g++ foo.cpp -Wall -O2
In C, the warning is "foo.c:2: warning: 'f[1]' is used uninitialized in this
function"
In C++, the warning is "foo.cpp:2: warning: 'f$1' is used uninitialized in this
function"
Minor bug with perhaps a minor fix.
--
Summary: c++ "is used uninitialized" warning on arrays hard to
read
Product: gcc
Version: 4.0.2
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: benoit dot hudson at gmail dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23679
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/23679] c++ "is used uninitialized" warning on arrays hard to read
2005-09-01 15:57 [Bug c++/23679] New: c++ "is used uninitialized" warning on arrays hard to read benoit dot hudson at gmail dot com
@ 2005-09-01 15:59 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-01 15:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-01 15:59 -------
This is a dup of bug 14329.
*** This bug has been marked as a duplicate of 14329 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23679
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-09-01 15:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-01 15:57 [Bug c++/23679] New: c++ "is used uninitialized" warning on arrays hard to read benoit dot hudson at gmail dot com
2005-09-01 15:59 ` [Bug c++/23679] " pinskia at gcc dot gnu dot org
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).