Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp0x/ref-bind5.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
rev | line source |
---|---|
145 | 1 // PR c++/91889 - follow-up fix for DR 2352. |
2 // { dg-do compile { target c++11 } } | |
3 | |
4 template <typename U> struct A { typedef U *type; }; | |
5 struct B { | |
6 typedef A<B>::type node_ptr; | |
7 }; | |
8 struct C { | |
9 typedef B::node_ptr node_ptr; | |
10 typedef A<const B>::type const_node_ptr; | |
11 }; | |
12 struct { | |
13 void to_value_ptr(C::node_ptr) {}; | |
14 void to_value_ptr(const C::const_node_ptr &); | |
15 } b; | |
16 C::node_ptr a; | |
17 void fn1() { b.to_value_ptr(a); } |