Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/warn/implicit-typename1.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
// The -pedantic option must be omitted to trigger the crash. // { dg-do compile } // { dg-options "" } // PR c++/7982: Crash warning about implicit typename. // The base class refers to another typename, while the // name lookup finds a template. template <typename T> struct X {}; template <typename T> struct C { typedef typename T::X X; }; template <typename T> struct A : public C<T> { typedef ::X<int> X; };