This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR c++/16160
- From: Jason Merrill <jason at redhat dot com>
- To: Patrick Palka <patrick at parcs dot ath dot cx>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 14 Jan 2015 19:38:10 -0500
- Subject: Re: [PATCH] Fix PR c++/16160
- Authentication-results: sourceware.org; auth=none
- References: <1421207682-14372-1-git-send-email-patrick at parcs dot ath dot cx> <1421252931-32684-1-git-send-email-patrick at parcs dot ath dot cx> <54B6DF8E dot 5090905 at redhat dot com> <CA+C-WL-ADUY_Jn0tx6AFD8aPo==BQjYiXt5ugFR3dgXrtxEGog at mail dot gmail dot com>
On 01/14/2015 05:04 PM, Patrick Palka wrote:
Did this define a specialization too:
struct X<5> { };
Yes. There's an example in the ARM that says
A class can be defined as the definition of a template class. For example,
template<class T> class stream { /* ... */ };
class stream<char> { /* ... */ };
Here, the class declaration will be used as the definition of streams of
characters (stream<char>). Other streams will be handled by template
functions generated from the class template.
Jason