Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/parse/tmpl-tmpl-operator1.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
// PR c++/8857 // Origin: Martin v. Loewis <loewis@informatik.hu-berlin.de> // { dg-do compile } template <typename T> struct A { template <typename U> operator U() { return sizeof(U); } }; template <typename T> struct B { template <template <typename U> class X> operator X<double>() { return X<double>(); } }; int main() { A<double> a; B<long> b; a = b; }