From: Patrick Palka <patrick@parcs.ath.cx>
To: Jason Merrill <jason@redhat.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] Fix PR c++/16160
Date: Wed, 14 Jan 2015 22:20:00 -0000 [thread overview]
Message-ID: <CA+C-WL-ADUY_Jn0tx6AFD8aPo==BQjYiXt5ugFR3dgXrtxEGog@mail.gmail.com> (raw)
In-Reply-To: <54B6DF8E.5090905@redhat.com>
On Wed, Jan 14, 2015 at 4:28 PM, Jason Merrill <jason@redhat.com> wrote:
> On 01/14/2015 11:28 AM, Patrick Palka wrote:
>>
>> Second, since the user probably intended to
>> have written an explicit template instantiation (as in the PR), the FE
>> should suggest adding "template" before such a declaration, that is the
>> declaration
>>
>> struct X<5>; // error + suggest adding "template"
>
>
> Actually, I think in pre-standard days this declared a specialization,
> before template<> was required. So I think we want to treat it as a
> specialization in this case as well.
Did this define a specialization too:
struct X<5> { };
or was template<> always required here?
>
> Jason
>
next prev parent reply other threads:[~2015-01-14 22:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-14 5:30 Patrick Palka
2015-01-14 13:27 ` Jason Merrill
2015-01-14 13:34 ` Patrick Palka
2015-01-14 13:49 ` Patrick Palka
2015-01-14 18:23 ` Patrick Palka
2015-01-14 21:34 ` Jason Merrill
2015-01-14 22:20 ` Patrick Palka [this message]
2015-01-15 1:19 ` Jason Merrill
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+C-WL-ADUY_Jn0tx6AFD8aPo==BQjYiXt5ugFR3dgXrtxEGog@mail.gmail.com' \
--to=patrick@parcs.ath.cx \
--cc=gcc-patches@gcc.gnu.org \
--cc=jason@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).