public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99007] New: [11 Regression] ICE in dominated_by_p, at dominance.c:1124
@ 2021-02-08 18:14 gscfq@t-online.de
  2021-02-08 18:19 ` [Bug c++/99007] " jakub at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: gscfq@t-online.de @ 2021-02-08 18:14 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99007
           Summary: [11 Regression] ICE in dominated_by_p, at
                    dominance.c:1124
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started between 20201018 and 20201108 :


$ cat z1.cc
template <typename T> void bar (T *)
{
  T s[0/0];
  #pragma omp teams distribute parallel for reduction(+:s) allocate(s)
  for (int i = 0; i < 8; i++);
}
void foo ()
{
  long *a;
  bar (a);
}


$ g++-11-20210207 -c z1.cc -fopenmp
z1.cc: In function 'void bar(T*)':
z1.cc:3:8: warning: division by zero [-Wdiv-by-zero]
    3 |   T s[0/0];
      |       ~^~
z1.cc: In instantiation of 'void bar(T*) [with T = long int]':
z1.cc:10:9:   required from here
z1.cc:3:8: warning: division by zero [-Wdiv-by-zero]
during GIMPLE pass: ssa
z1.cc: In function '_Z3barIlEvPT_._omp_fn.0':
z1.cc:11:1: internal compiler error: Segmentation fault
   11 | }
      | ^
0xfe6cdf crash_signal
        ../../gcc/toplev.c:327
0xb6e764 dominated_by_p(cdi_direction, basic_block_def const*, basic_block_def
const*)
        ../../gcc/dominance.c:1124
0x1259775 verify_use
        ../../gcc/tree-ssa.c:892
0x125e462 verify_ssa(bool, bool)
        ../../gcc/tree-ssa.c:1167
0xef8a87 execute_function_todo
        ../../gcc/passes.c:2049
0xef97f2 execute_todo
        ../../gcc/passes.c:2096

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

end of thread, other threads:[~2021-04-22 17:11 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-08 18:14 [Bug c++/99007] New: [11 Regression] ICE in dominated_by_p, at dominance.c:1124 gscfq@t-online.de
2021-02-08 18:19 ` [Bug c++/99007] " jakub at gcc dot gnu.org
2021-02-09 14:57 ` jakub at gcc dot gnu.org
2021-02-09 15:26 ` [Bug middle-end/99007] " jakub at gcc dot gnu.org
2021-02-09 16:30 ` jakub at gcc dot gnu.org
2021-02-10  9:42 ` cvs-commit at gcc dot gnu.org
2021-02-10 14:46 ` [Bug middle-end/99007] [8/9/10 " jakub at gcc dot gnu.org
2021-02-10 14:46 ` jakub at gcc dot gnu.org
2021-03-19 23:28 ` cvs-commit at gcc dot gnu.org
2021-03-20  8:07 ` [Bug middle-end/99007] [8/9 " jakub at gcc dot gnu.org
2021-04-20 23:32 ` cvs-commit at gcc dot gnu.org
2021-04-22 16:50 ` cvs-commit at gcc dot gnu.org
2021-04-22 17:11 ` jakub 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).