octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #48493] Clear up "shadowed member" warnings


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #48493] Clear up "shadowed member" warnings
Date: Wed, 13 Jul 2016 20:29:29 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0

Follow-up Comment #4, bug #48493 (project octave):

I did some digging. Some of these may be false positives with older versions
of gcc. GCC 5 has "fixed" the -Wshadow option by making it not warn about
variables and methods that have the same name, only class variables and local
variables or parameters.

So for example having a local variable named "parent" no longer emits a
-Wshadow warning if the class or its base class has a method also named
"parent".

Reference to GCC bug report:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57709

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48493>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]