view gcc/testsuite/g++.dg/template/nontype15.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

struct foo {
    typedef int (*fun)(int);

  static int f(int);    // overload between static & non-static
  int f();

  static int g(int);    // non-overloaded static
};

template<foo::fun>
struct f_obj {
  // something ..
};

int foo::f() {
  f_obj<f> f1;
  f_obj<g> f2;

  return 0; 
}