public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/104328] New: ICE in resolve_omp_atomic, at fortran/openmp.cc:7760 (etc.)
@ 2022-02-01 17:36 gscfq@t-online.de
  2022-02-02 10:06 ` [Bug fortran/104328] [12 Regression] ICE in resolve_omp_atomic, at fortran/openmp.cc:7760 (etc.) since r12-5793-g689407ef916503b2 marxin at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: gscfq@t-online.de @ 2022-02-01 17:36 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104328
           Summary: ICE in resolve_omp_atomic, at fortran/openmp.cc:7760
                    (etc.)
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started between 20211128 and 20211205 :


$ cat z1.f90
program p
   integer :: k = 1
   !$omp atomic compare
   if ( k == 2 ) then
   end if
end


$ cat z2.f90
program p
   real :: x = 1
   !$omp atomic compare
   if ( x == 2 ) then
   end if
end


$ cat z3.f90
program p
   integer :: i
   !$omp atomic capture
   i = 1
   i = i + 1.
end


$ cat z4.f90
program p
   integer :: i = 0
   !$omp atomic capture
   i = i + 1.0
   i = i + 1.0
end


$ cat z5.f90
program p
   logical :: k = .true.
   !$omp atomic capture compare
   if ( k ) then
   else
   end if
end


$ gfortran-12-20220130 -c z1.f90 -fopenmp
f951: internal compiler error: Segmentation fault
0xcc655f crash_signal
        ../../gcc/toplev.cc:322
0x7385fa resolve_omp_atomic
        ../../gcc/fortran/openmp.cc:7760
0x76790b gfc_resolve_code(gfc_code*, gfc_namespace*)
        ../../gcc/fortran/resolve.cc:12365
0x769407 resolve_codes
        ../../gcc/fortran/resolve.cc:17537
0x7694ce gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.cc:17572
0x7517f4 resolve_all_program_units
        ../../gcc/fortran/parse.cc:6586
0x7517f4 gfc_parse_file()
        ../../gcc/fortran/parse.cc:6842
0x79eecf gfc_be_parse_file
        ../../gcc/fortran/f95-lang.cc:216

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

end of thread, other threads:[~2022-02-03  8:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-01 17:36 [Bug fortran/104328] New: ICE in resolve_omp_atomic, at fortran/openmp.cc:7760 (etc.) gscfq@t-online.de
2022-02-02 10:06 ` [Bug fortran/104328] [12 Regression] ICE in resolve_omp_atomic, at fortran/openmp.cc:7760 (etc.) since r12-5793-g689407ef916503b2 marxin at gcc dot gnu.org
2022-02-02 15:30 ` jakub at gcc dot gnu.org
2022-02-02 19:29 ` jakub at gcc dot gnu.org
2022-02-02 19:34 ` jakub at gcc dot gnu.org
2022-02-03  8:05 ` cvs-commit at gcc dot gnu.org
2022-02-03  8:15 ` 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).