public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/111703] New: [C++20]Compiler fails when using generic lambda in specific situation
@ 2023-10-05 12:40 watanabemakoto.math at gmail dot com
  2023-10-05 14:33 ` [Bug c++/111703] [12/13/14 Regression] " pinskia at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: watanabemakoto.math at gmail dot com @ 2023-10-05 12:40 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111703

            Bug ID: 111703
           Summary: [C++20]Compiler fails when using generic lambda in
                    specific situation
           Product: gcc
           Version: 13.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: watanabemakoto.math at gmail dot com
  Target Milestone: ---

Consider the example:

```
#include <utility>
using P = std::pair<int, int>;
void (*f)(P);

int main(){
    [](auto) {
        P x;
        f(x);
    };
}
```

GCC 13.2.0 fails to compile the example. Compile option is `-std=c++20` .

Godbolt playground: https://godbolt.org/z/nPMb38ond

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

end of thread, other threads:[~2023-11-27 22:02 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-05 12:40 [Bug c++/111703] New: [C++20]Compiler fails when using generic lambda in specific situation watanabemakoto.math at gmail dot com
2023-10-05 14:33 ` [Bug c++/111703] [12/13/14 Regression] " pinskia at gcc dot gnu.org
2023-10-05 14:36 ` pinskia at gcc dot gnu.org
2023-10-05 23:43 ` pinskia at gcc dot gnu.org
2023-10-27 23:40 ` ppalka at gcc dot gnu.org
2023-10-31 17:36 ` [Bug c++/111703] [11/12/13/14 Regression] [C++20]Compiler fails when using generic lambda in specific situation since r11-550-gf65a3299a521a4 ppalka at gcc dot gnu.org
2023-11-15 17:03 ` cvs-commit at gcc dot gnu.org
2023-11-16 14:32 ` cvs-commit at gcc dot gnu.org
2023-11-16 17:27 ` [Bug c++/111703] [11/12/13 " ppalka at gcc dot gnu.org
2023-11-24 16:56 ` cvs-commit at gcc dot gnu.org
2023-11-24 16:56 ` cvs-commit at gcc dot gnu.org
2023-11-27 22:02 ` cvs-commit at gcc dot gnu.org
2023-11-27 22:02 ` cvs-commit 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).