Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / template / ptrmem5.C
blob50a7e77f4b2e284d0f834a6efb48d4d632e36224
1 // { dg-do compile }
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 24 Mar 2003 <nathan@codesourcery.com>
6 // PR 10119 (part). We failed to tsubst the args of a template-id-expr
8 template <class T, void (T::* const U)()> struct Good
10   static int const value = 0;
13 struct A
15   template <typename U> void good ()
16   {
17     int s_id = Good<A, &A::good<U> >::value;
18   }
22 int main()
24   A().good<int>();