public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/88580] Parameter pack expansion fails (variadic constructor template inside a variadic class template)
[not found] <bug-88580-4@http.gcc.gnu.org/bugzilla/>
@ 2021-04-24 11:16 ` rustamabd at gmail dot com
2021-04-26 15:30 ` ppalka at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 6+ messages in thread
From: rustamabd at gmail dot com @ 2021-04-24 11:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88580
Rustam Abdullaev <rustamabd at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rustamabd at gmail dot com
--- Comment #4 from Rustam Abdullaev <rustamabd at gmail dot com> ---
Works if I change
: Base(std::forward<T>(args)...)...
To
: Base{std::forward<T>(args)...}...
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/88580] Parameter pack expansion fails (variadic constructor template inside a variadic class template)
[not found] <bug-88580-4@http.gcc.gnu.org/bugzilla/>
2021-04-24 11:16 ` [Bug c++/88580] Parameter pack expansion fails (variadic constructor template inside a variadic class template) rustamabd at gmail dot com
@ 2021-04-26 15:30 ` ppalka at gcc dot gnu.org
2021-04-27 18:22 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 6+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-04-26 15:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88580
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2021-04-26
CC| |ppalka at gcc dot gnu.org
Ever confirmed|0 |1
Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/88580] Parameter pack expansion fails (variadic constructor template inside a variadic class template)
[not found] <bug-88580-4@http.gcc.gnu.org/bugzilla/>
2021-04-24 11:16 ` [Bug c++/88580] Parameter pack expansion fails (variadic constructor template inside a variadic class template) rustamabd at gmail dot com
2021-04-26 15:30 ` ppalka at gcc dot gnu.org
@ 2021-04-27 18:22 ` cvs-commit at gcc dot gnu.org
2021-04-27 18:25 ` ppalka at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-27 18:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88580
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppalka@gcc.gnu.org>:
https://gcc.gnu.org/g:37d2b98100cefcb9d312d379473c12aa6d61fc62
commit r12-174-g37d2b98100cefcb9d312d379473c12aa6d61fc62
Author: Patrick Palka <ppalka@redhat.com>
Date: Tue Apr 27 14:18:25 2021 -0400
c++: Fix Bases(args...)... base initialization [PR88580]
When substituting into the arguments of a base initializer pack
expansion, tsubst_initializer_list uses a dummy EXPR_PACK_EXPANSION
in order to expand an initializer such as Bases(args)... into
Bases#{0}(args#{0}) and so on. But when an argument inside the base
initializer is itself a pack expansion, as in Bases(args...)..., the
argument is already an EXPR_PACK_EXPANSION so we don't need to wrap it.
It's also independent from the outer expansion of Bases, so we need to
"multiplicatively" append the expansion of args... onto the argument
list of each expanded base.
gcc/cp/ChangeLog:
PR c++/88580
* pt.c (tsubst_initializer_list): Correctly handle the case
where an argument inside a base initializer pack expansion is
itself a pack expansion.
gcc/testsuite/ChangeLog:
PR c++/88580
* g++.dg/cpp0x/variadic182.C: New test.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/88580] Parameter pack expansion fails (variadic constructor template inside a variadic class template)
[not found] <bug-88580-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2021-04-27 18:22 ` cvs-commit at gcc dot gnu.org
@ 2021-04-27 18:25 ` ppalka at gcc dot gnu.org
2021-12-08 18:58 ` pinskia at gcc dot gnu.org
2022-04-30 16:01 ` ppalka at gcc dot gnu.org
5 siblings, 0 replies; 6+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-04-27 18:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88580
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |12.0
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #6 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Thanks for the bug report. This should now be fixed for GCC 12.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/88580] Parameter pack expansion fails (variadic constructor template inside a variadic class template)
[not found] <bug-88580-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2021-04-27 18:25 ` ppalka at gcc dot gnu.org
@ 2021-12-08 18:58 ` pinskia at gcc dot gnu.org
2022-04-30 16:01 ` ppalka at gcc dot gnu.org
5 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-08 18:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88580
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |0x66726565 at gmail dot com
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 84464 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/88580] Parameter pack expansion fails (variadic constructor template inside a variadic class template)
[not found] <bug-88580-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2021-12-08 18:58 ` pinskia at gcc dot gnu.org
@ 2022-04-30 16:01 ` ppalka at gcc dot gnu.org
5 siblings, 0 replies; 6+ messages in thread
From: ppalka at gcc dot gnu.org @ 2022-04-30 16:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88580
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also|https://gcc.gnu.org/bugzill |
|a/show_bug.cgi?id=59716 |
CC| |lts-rudolph at gmx dot de
--- Comment #8 from Patrick Palka <ppalka at gcc dot gnu.org> ---
*** Bug 59716 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-04-30 16:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-88580-4@http.gcc.gnu.org/bugzilla/>
2021-04-24 11:16 ` [Bug c++/88580] Parameter pack expansion fails (variadic constructor template inside a variadic class template) rustamabd at gmail dot com
2021-04-26 15:30 ` ppalka at gcc dot gnu.org
2021-04-27 18:22 ` cvs-commit at gcc dot gnu.org
2021-04-27 18:25 ` ppalka at gcc dot gnu.org
2021-12-08 18:58 ` pinskia at gcc dot gnu.org
2022-04-30 16:01 ` ppalka at gcc dot gnu.org
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).