public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105304] New: ICE segfault using ad-hoc concept with -Wall
@ 2022-04-18 16:14 bjoern at hoehrmann dot de
  2022-04-19 14:13 ` [Bug c++/105304] [10/11/12 Regression] ICE segfault using ad-hoc concept with -Wall since r10-7441-ga7ea3d2ced786c45 marxin at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: bjoern at hoehrmann dot de @ 2022-04-18 16:14 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105304
           Summary: ICE segfault using ad-hoc concept with -Wall
           Product: gcc
           Version: 11.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bjoern at hoehrmann dot de
  Target Milestone: ---

GCC 11.2.0 on Linux

 ❯  g++-11 -Wall -std=c++2a -o x ../mini.cxx   
../mini.cxx: In function 'int main()':
../mini.cxx:23:18: internal compiler error: Segmentation fault
   23 |                 }) {
      |                  ^
Please submit a full bug report,

Code:

#include <iostream>
#include <utility>

class X
{
public:
  int m(int, int, int = 7) { return 123; }
};

template<typename... Ts>
void
invoke_m(std::index_sequence_for<Ts...> is)
{
  X o;
  o.m(Ts()...);
}

int
main()
{
  if constexpr (requires {
                  invoke_m<int, int, int, int>(std::make_index_sequence<4>());
                }) {
    std::cerr << "ok" << '\n';
  }

  return 0;
}

Compiles when omitting -Wall.

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

end of thread, other threads:[~2022-05-09 23:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-18 16:14 [Bug c++/105304] New: ICE segfault using ad-hoc concept with -Wall bjoern at hoehrmann dot de
2022-04-19 14:13 ` [Bug c++/105304] [10/11/12 Regression] ICE segfault using ad-hoc concept with -Wall since r10-7441-ga7ea3d2ced786c45 marxin at gcc dot gnu.org
2022-04-21  7:22 ` rguenth at gcc dot gnu.org
2022-04-22 18:16 ` ppalka at gcc dot gnu.org
2022-04-26  1:49 ` cvs-commit at gcc dot gnu.org
2022-04-26  1:50 ` [Bug c++/105304] [10/11 " ppalka at gcc dot gnu.org
2022-04-28 15:39 ` cvs-commit at gcc dot gnu.org
2022-05-09 23:33 ` [Bug c++/105304] [10 " cvs-commit at gcc dot gnu.org
2022-05-09 23:35 ` 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).