Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/warn/implicit-typename1.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +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; };