public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ppalka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/59716] [10/11 Regression] variadic template multiple parameter pack expansion fails Date: Thu, 07 Apr 2022 13:28:11 +0000 [thread overview] Message-ID: <bug-59716-4-LFopWwOERv@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-59716-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59716 --- Comment #9 from Patrick Palka <ppalka at gcc dot gnu.org> --- Hmm, this PR is essentially a dup of PR88580 but I don't think it's a 10/11 regression: between r8-2715 and r10-3735 it seems we just went from incorrectly rejecting the testcase (the behavior before r8-2715) to miscompiling it. After r10-3735 we went back to incorrectly rejecting it (arguably an improvement). So AFAICT we never correctly handled this testcase before r12-174. Output when compiled with GCC trunk: Construction of: DebugPrinter<Head, T>::DebugPrinter(Y ...) [with Y = {int, char, void*, int}; Head = int; T = {char, int, float}] Values: 1, c, 0xddddd, 1, Construction of: DebugPrinter<Head, T>::DebugPrinter(Y ...) [with Y = {float, char, void*, float}; Head = float; T = {void*, int, float}] Values: 2.2, c, 0xddddd, 2.2, GCC 10/11 reject the testcase. Output when compiled with GCC 7.4/8/9 (miscompile): Construction of: DebugPrinter<Head, T>::DebugPrinter(Y ...) [with Y = {int, bool, int}; Head = int; T = {char, int, float}] Values: 1, 0, 1, Construction of: DebugPrinter<Head, T>::DebugPrinter(Y ...) [with Y = {float, bool, float}; Head = float; T = {void*, int, float}] Values: 2.2, 0, 2.2, GCC < 7.4 reject the testcase. Output when compiled with Clang (equivalent to GCC trunk output): Construction of: DebugPrinter<int, char, int, float>::DebugPrinter(Y...) [Head = int, T = <char, int, float>, Y = <int, char, void *, int>] Values: 1, c, 0xddddd, 1, Construction of: DebugPrinter<float, void *, int, float>::DebugPrinter(Y...) [Head = float, T = <void *, int, float>, Y = <float, char, void *, float>] Values: 2.2, c, 0xddddd, 2.2,
next prev parent reply other threads:[~2022-04-07 13:28 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-01-08 7:15 [Bug c++/59716] New: " lts-rudolph at gmx dot de 2015-04-04 9:27 ` [Bug c++/59716] " paolo.carlini at oracle dot com 2015-08-03 11:02 ` lts-rudolph at gmx dot de 2021-08-10 2:27 ` pinskia at gcc dot gnu.org 2021-08-10 2:56 ` pinskia at gcc dot gnu.org 2021-11-26 19:51 ` lts-rudolph at gmx dot de 2021-11-26 21:14 ` [Bug c++/59716] [10/11 Regression] " pinskia at gcc dot gnu.org 2021-12-09 9:24 ` marxin at gcc dot gnu.org 2021-12-09 14:38 ` pinskia at gcc dot gnu.org 2021-12-09 14:58 ` marxin at gcc dot gnu.org 2022-04-07 8:39 ` rguenth at gcc dot gnu.org 2022-04-07 9:29 ` rguenth at gcc dot gnu.org 2022-04-07 13:28 ` ppalka at gcc dot gnu.org [this message] 2022-04-30 16:01 ` [Bug c++/59716] " ppalka at gcc dot gnu.org
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-59716-4-LFopWwOERv@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: linkBe 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).