public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
[parent not found: <bug-12341-5606@http.gcc.gnu.org/bugzilla/>]
* [Bug c++/12341] New: Request for additional warning for variable shadowing
@ 2003-09-19 16:01 bero at arklinux dot org
  2003-09-19 19:23 ` [Bug c++/12341] " bangerth at dealii dot org
  0 siblings, 1 reply; 7+ messages in thread
From: bero at arklinux dot org @ 2003-09-19 16:01 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12341

           Summary: Request for additional warning for variable shadowing
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bero at arklinux dot org
                CC: gcc-bugs at gcc dot gnu dot org

class A { 
public: 
        A() { } 
protected: 
        int aaa; 
}; 
 
class B:public A { 
public: 
        B():A() { } 
protected: 
        int aaa; 
}; 
 
compiles without a warning, and is a potential source of hard to trace problems 
(while it can, of course, be used intentionally). 
 
It may be useful to give a warning akin to the one given in the case of 
 
void blah(int a) 
{ 
	int a; 
}


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

end of thread, other threads:[~2023-04-07 13:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-12341-4@http.gcc.gnu.org/bugzilla/>
2020-05-18 23:43 ` [Bug c++/12341] Request for additional warning for variable shadowing msebor at gcc dot gnu.org
2021-10-25  5:10 ` pinskia at gcc dot gnu.org
2022-02-04  7:52 ` egallager at gcc dot gnu.org
2022-02-04 11:00 ` redi at gcc dot gnu.org
2023-04-07 13:29 ` priour.be at gmail dot com
     [not found] <bug-12341-5606@http.gcc.gnu.org/bugzilla/>
2005-12-13  9:18 ` hayim at dv-networks dot com
2003-09-19 16:01 [Bug c++/12341] New: " bero at arklinux dot org
2003-09-19 19:23 ` [Bug c++/12341] " bangerth at dealii 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).