Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/template/typename18.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 // { dg-do compile } | |
2 | |
3 // These typename should work as they are types. | |
4 struct A | |
5 { | |
6 typedef int a; | |
7 template <int> | |
8 struct f {}; | |
9 template<int> void foo(int i) | |
10 { | |
11 typename A::a(i1); | |
12 typename A::f<0>(i2); | |
13 } | |
14 }; |