Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/template/typedef34.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
// Origin PR c++/45200 // { dg-do compile } template<typename T> struct remove_reference { typedef T type; }; template<typename TestType> struct forward_as_lref { }; template<typename Seq, typename N> struct apply1 { typedef typename remove_reference<Seq>::type seq; typedef forward_as_lref<typename seq::seq_type> type; //#0 }; template<typename Seq> struct apply { typedef forward_as_lref<typename remove_reference<Seq>::type::seq_type> type; //#1 }; struct reverse_view { typedef int seq_type; }; int main() { apply<reverse_view >::type a2; }