public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/115358] New: template argument deduction/substitution failed on lambda function
@ 2024-06-05 12:32 dongkyun.s at samsung dot com
  2024-06-05 12:35 ` [Bug c++/115358] " dongkyun.s at samsung dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: dongkyun.s at samsung dot com @ 2024-06-05 12:32 UTC (permalink / raw)
  To: gcc-bugs

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 !

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-06-28 21:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-05 12:32 [Bug c++/115358] New: template argument deduction/substitution failed on lambda function dongkyun.s at samsung dot com
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

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).