public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/44128] C++ frontend not warn on type shadowing with -Wshadow
[not found] <bug-44128-4@http.gcc.gnu.org/bugzilla/>
@ 2011-11-05 1:25 ` paolo.carlini at oracle dot com
2011-11-05 3:44 ` jason at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-11-05 1:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44128
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|gcc-bugs at gcc dot gnu.org |jason at gcc dot gnu.org,
| |paolo.carlini at oracle dot
| |com
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-11-05 01:25:27 UTC ---
Indeed, the main issue has been fixed a lot of time ago.
Jason, shall we change the second warning to an inform, as suggested by Andrew?
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/44128] C++ frontend not warn on type shadowing with -Wshadow
[not found] <bug-44128-4@http.gcc.gnu.org/bugzilla/>
2011-11-05 1:25 ` [Bug c++/44128] C++ frontend not warn on type shadowing with -Wshadow paolo.carlini at oracle dot com
@ 2011-11-05 3:44 ` jason at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: jason at gcc dot gnu.org @ 2011-11-05 3:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44128
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.6.0
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-11-05 03:44:37 UTC ---
Yes, it was fixed by
2010-07-02 Le-Chun Wu <lcwu@google.com>
PR/44128
* name-lookup.c (pushdecl_maybe_friend): Warn when a local decl
(variable or type) shadows another type.
Changing the second warning to an inform sounds good.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/44128] C++ frontend not warn on type shadowing with -Wshadow
2010-05-13 23:03 [Bug c++/44128] New: " lcwu at gcc dot gnu dot org
@ 2010-07-24 21:29 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-07-24 21:29 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 545 bytes --]
------- Comment #1 from pinskia at gcc dot gnu dot org 2010-07-24 21:28 -------
apinski@apinski-desktop:~/Desktop$ ~/local-gcc/bin/g++ -Wshadow t.c -S
t.c: In function void bar():
t.c:5:14: warning: declaration of Py_ssize_t shadows a global declaration
[-Wshadow]
t.c:1:14: warning: shadowed declaration is here [-Wshadow]
Hmm, this must have been fixed between May and now, 4.3.2 did not report the
warning either.
Note I think the second warning should really be note.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44128
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-11-05 3:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-44128-4@http.gcc.gnu.org/bugzilla/>
2011-11-05 1:25 ` [Bug c++/44128] C++ frontend not warn on type shadowing with -Wshadow paolo.carlini at oracle dot com
2011-11-05 3:44 ` jason at gcc dot gnu.org
2010-05-13 23:03 [Bug c++/44128] New: " lcwu at gcc dot gnu dot org
2010-07-24 21:29 ` [Bug c++/44128] " 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).