OSDN Git Service

* decl.c (compute_array_index_type): Don't try to do anything with
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / spec34.C
1 // Build don't link:
2
3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 17 Jan 2001 <nathan@codesourcery.com>
5
6 // Bug 1632. In copying default args from a template to a specialization, we
7 // lost the object's CV quals, leading to an utterly confusing error message.
8
9 struct X;
10
11 template <int dim> struct Y
12 {
13   X *f (int i = 0) const;
14 };
15
16 template <> X *Y<2>::f (int i) const
17 {
18   return f (i);
19 }