------- Additional Comments From reichelt at gcc dot gnu dot org  2004-11-21 
12:17 -------
In addition to the bogus warnings about '__dt' and '__ct' shadowing a
member of 'this' I get three more warnings when compiling a preprocessed
version of "#include<iostream>". I just stripped the lines beginning with
"#" from the preprocessor output and compiled them with "g++ -Wshadow".
I then got three warnings

warn.ii:xxx: warning: declaration of '__desc_type' shadows a member of 'this'

They come from bits/codecvt_specializations.h where we have
  typedef state_type::__desc_type __desc_type;
in the functions 'do_out', 'do_unshift', and 'do_in'.

In the class definiton we already have
  typedef __enc_traits              state_type;
  typedef __enc_traits::__desc_type __desc_type;
so that the warnings seem to be justified although the typedefs in the
functions do not change anything. Paolo, shouldn't we remove them anyway?


-- 


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

Reply via email to