1 // { dg-do compile }
2 
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 24 Mar 2003 <nathan@codesourcery.com>
5 
6 // PR 10119 (part). We failed to tsubst the args of a template-id-expr
7 
8 template <class T, void (T::* const U)()> struct Good
9 {
10   static int const value = 0;
11 };
12 
13 struct A
14 {
goodA15   template <typename U> void good ()
16   {
17     int s_id = Good<A, &A::good<U> >::value;
18   }
19 };
20 
21 
main()22 int main()
23 {
24   A().good<int>();
25 }
26