Mercurial > hg > CbC > CbC_gcc
annotate 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 |
rev | line source |
---|---|
111 | 1 // The -pedantic option must be omitted to trigger the crash. |
2 // { dg-do compile } | |
3 // { dg-options "" } | |
4 | |
5 // PR c++/7982: Crash warning about implicit typename. | |
6 // The base class refers to another typename, while the | |
7 // name lookup finds a template. | |
8 | |
9 template <typename T> struct X {}; | |
10 | |
11 template <typename T> struct C { | |
12 typedef typename T::X X; | |
13 }; | |
14 | |
15 template <typename T> struct A : public C<T> { | |
16 typedef ::X<int> X; | |
17 }; |