public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dongkyun.s at samsung dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/115358] New: template argument deduction/substitution failed on lambda function Date: Wed, 05 Jun 2024 12:32:11 +0000 [thread overview] Message-ID: <bug-115358-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115358 Bug ID: 115358 Summary: template argument deduction/substitution failed on lambda function Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dongkyun.s at samsung dot com Target Milestone: --- Hello Noticed compilation failed with https://godbolt.org/z/8s78YPWs3 example code starting from GCC-13. <source>: In lambda function: <source>:10:12: error: no matching function for call to 'foo(const char [])' 10 | foo(STR); | ~~~^~~~~ <source>:2:6: note: candidate: 'template<int N> void foo(const char (&)[N])' 2 | void foo(const char (&data)[N]) {} | ^~~ <source>:2:6: note: template argument deduction/substitution failed: <source>:10:12: note: mismatched types 'const char [N]' and 'const char []' 10 | foo(STR); | ~~~^~~~~ ASM generation compiler returned: 1 Any idea into this failure ? Thank you in advance !
next reply other threads:[~2024-06-05 12:32 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-06-05 12:32 dongkyun.s at samsung dot com [this message] 2024-06-05 12:35 ` [Bug c++/115358] " dongkyun.s at samsung dot com 2024-06-05 12:36 ` dongkyun.s at samsung dot com 2024-06-05 12:53 ` redi at gcc dot gnu.org 2024-06-05 13:12 ` [Bug c++/115358] [13/14/15 Regression] template argument deduction/substitution failed in generic " pinskia at gcc dot gnu.org 2024-06-05 13:19 ` pinskia at gcc dot gnu.org 2024-06-06 6:30 ` [Bug c++/115358] [13/14/15 Regression] template argument deduction/substitution failed in generic lambda function use of static constexpr array type whos initializer defines the size rguenth at gcc dot gnu.org 2024-06-17 11:41 ` [Bug c++/115358] [13/14/15 Regression] template argument deduction/substitution failed in generic lambda function use of static constexpr array type whos initializer defines the size since r13-2540 jakub at gcc dot gnu.org 2024-06-18 17:44 ` ppalka at gcc dot gnu.org 2024-06-25 14:42 ` cvs-commit at gcc dot gnu.org 2024-06-28 21:14 ` cvs-commit at gcc dot gnu.org 2024-06-28 21:15 ` [Bug c++/115358] [13 " 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-115358-4@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).