* c-common.c (get_priority): Add check for
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / ttp53.C
blobb43771c8cfb2b23d79ad93fe0559a016ddcae3fc
1 // { dg-do assemble  }
3 // Submitted by Erez Louidor Lior <s3824888@techst02.technion.ac.il>
5 template <typename> class H;
6 template <typename Target, typename Source>
7 H<Target> foo(const H<Source>&);
9 template <typename Type>
10 class H{
12 #ifdef OK
13 public:
14 #endif
15   template<template<class, class> class Caster, typename Source>
16   static H<Type> cast(const H<Source>& s);
18 #ifndef OK
19   template <typename Target, typename Source>
20   friend H<Target> foo(const H<Source>&);
21 #endif
25 template <class, class> class caster;
27 template <typename Target, typename Source>
28 H<Target> foo(const H<Source>& s){
29   return H<Target>::template cast<caster, Source>(s);
32 int main(){
33   H<int> i;
34   foo<const int>(i);