1// { dg-do compile }
2
3// Copyright (C) 2001 Free Software Foundation, Inc.
4// Contributed by Nathan Sidwell 26 Dec 2001 <nathan@codesourcery.com>
5
6// PR 35. We were default promoting template PARM_DECLs
7
8template <short B> class R {};
9
10template <class T> class A
11{
12  public:
13  template <short B>
14  void operator() (R<B> const &);
15};
16
17int main() {
18  A<int> a;
19  R<1> r;
20
21  a (r);
22
23  return 0;
24}
25