PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / ntp1.C
blob98698e932e0ef6e5fa3b7baedad25f2d05250f2b
1 // { dg-do compile }
3 // Copyright (C) 2001 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 26 Dec 2001 <nathan@codesourcery.com>
6 // PR 35. We were default promoting template PARM_DECLs
8 template <short B> class R {};
10 template <class T> class A
12   public:
13   template <short B>
14   void operator() (R<B> const &);
17 int main() {
18   A<int> a;
19   R<1> r;
21   a (r);
22   
23   return 0;