Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/inherit2.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 // PR c++/5658 |
2 | |
3 // Copyright (C) 2002 Free Software Foundation, Inc. | |
4 // Contributed by Theodore.Papadopoulo 11 Feb 2002 <Theodore.Papadopoulo@sophia.inria.fr> | |
5 | |
6 struct A { | |
7 typedef int iterator; | |
8 }; | |
9 template <typename T> | |
10 struct B: public A { | |
11 template <typename U> | |
12 struct iterator { | |
13 }; | |
14 B() { } | |
15 }; | |
16 int main() | |
17 { | |
18 B<int> a; | |
19 } |