2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / nontype5.C
blob7d410b7f18805157f484fc46d208162e284e46c2
1 // { dg-do assemble  }
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 10 Jan 2001 <nathan@codesourcery.com>
6 // Bug 1509. We ICE'd on trying to coerce a non-type template parm
7 // that wouldn't.
9 template<class T>
10 struct A {
11 typedef int F();
14 template<class T, typename A<T>::F f>
15 struct B {
16 static int g() { return f(); };
19 int f() { return 0; }
21 int main() {
22 return B<int,&f>::g();  // { dg-error "" } could not convert arg