Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/using28.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 |
rev | line source |
---|---|
111 | 1 // PR c++/37140 |
2 | |
3 struct C | |
4 { | |
5 static const int block_size = 1; | |
6 }; | |
7 | |
8 template <typename T> struct A { | |
9 typedef C type; | |
10 }; | |
11 | |
12 template <typename T> struct B : public A<T> { | |
13 using typename A<T>::type; | |
14 static const int block_size = type::block_size; | |
15 }; | |
16 | |
17 template class B<int>; |