OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [parse/] [tmpl-tmpl-operator1.C] - Rev 841

Go to most recent revision | Compare with Previous | Blame | View Log

// 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;
}

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.