Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/parse/operator2.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++/7906 |
2 // Origin: Marcel Loose <loose@astron.nl> | |
3 // { dg-do compile } | |
4 | |
5 template <typename> struct A { typedef int X; }; | |
6 | |
7 template <typename T> struct B | |
8 { | |
9 typedef A<T> Y; | |
10 struct C { operator typename Y::X() const; }; | |
11 }; | |
12 | |
13 template <typename T> B<T>::C::operator typename B<T>::Y::X() const { return 0; } | |
14 | |
15 B<int> b; |