Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/warn/pr82424.C @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-additional-options "-Wshadow=compatible-local" } // pr c++/82424 we were trying to convert between dependent types. template <typename T> class a { struct b; template <typename, typename> void c (); }; template <typename T> template <typename, typename> void a<T>::c () { typedef typename T::b b; // Don't go looking inside the typename T thing; { T thing; // { dg-warning "shadows a previous local" } } }