3 // Copyright (C) 2000 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 22 June 2000 <nathan@codesourcery.com>
6 // Origin GNATS bug report 262 from Jeremy Sanders <jss@ast.cam.ac.uk>
7 // and several others. With templates, it's very easy to say something
9 // template class X::X<whatever>
12 // caused us to ICE as we got confused about pushing and popping scopes.
14 template <class T> class image
17 template <class U> image(const image<U> ©);
20 template <class T> template <class U> image<T>::image(const image<U> ©)
24 template class image<double>;
25 template class image<double>::image (const image<int> &); // { dg-error "" } parse error
26 template class image<double>::image (image<int>); // { dg-error "" } specified as declarator-id
27 template image<double>::image (const image<int> &);