public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dodji at seketeli dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/51180] [C++0x] inner class alias-definition variadic template error
Date: Fri, 02 Dec 2011 10:16:00 -0000 [thread overview]
Message-ID: <bug-51180-4-LfzOIAzEuU@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-51180-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51180
--- Comment #4 from dodji at seketeli dot org <dodji at seketeli dot org> 2011-12-02 10:15:06 UTC ---
"jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> a écrit:
> I'm surprised that it doesn't just work already; writing t2<B...> already
> works, doing the substitution ought to work the same way.
It wasn't working in this case because we are getting into the "if"
below in coerce_template_parms:
if ((nargs > nparms && !variadic_p)
|| (nargs < nparms - variadic_p
&& require_all_args
&& (!use_default_args
|| (TREE_VEC_ELT (parms, nargs) != error_mark_node
&& !TREE_PURPOSE (TREE_VEC_ELT (parms, nargs))))))
{
We are getting there because the number of arguments of t2 in that
case is smaller than its number of parms.
I am still tweaking other parts of the patch to make it pass bootstrap
and testing.
next prev parent reply other threads:[~2011-12-02 10:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-16 20:50 [Bug c++/51180] New: [C++0x][C++11] " trashyankes at wp dot pl
2011-11-23 18:53 ` [Bug c++/51180] [C++0x] " trashyankes at wp dot pl
2011-12-01 19:25 ` dodji at gcc dot gnu.org
2011-12-01 19:42 ` jason at gcc dot gnu.org
2011-12-02 10:16 ` dodji at seketeli dot org [this message]
2011-12-03 17:26 ` dodji at gcc dot gnu.org
2013-10-04 10:59 ` paolo.carlini at oracle dot com
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=bug-51180-4-LfzOIAzEuU@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/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).