OSDN Git Service

* gcc.dg/20020201-1.c: Use cleanup-coverage_files.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / nontype5.C
1 // { dg-do assemble  }
2
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 10 Jan 2001 <nathan@codesourcery.com>
5
6 // Bug 1509. We ICE'd on trying to coerce a non-type template parm
7 // that wouldn't.
8
9 template<class T>
10 struct A {
11 typedef int F();
12 };
13
14 template<class T, typename A<T>::F f>
15 struct B {
16 static int g() { return f(); };
17 };
18
19 int f() { return 0; }
20
21 int main() {
22 return B<int,&f>::g();  // { dg-error "" } could not convert arg
23 }