Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions gfortran-bugs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ include(testing)

project(gfortran-bug Fortran)

add_compiler_test(SOURCES gfortran-20201204a.f90 RUN_ONLY LABELS PR98141)
add_compiler_test(SOURCES gfortran-20201204b.f90 RUN_ONLY LABELS PR98141)
add_compiler_test(SOURCES gfortran-20200501.f90 COMPILE_ONLY LABELS PR94909)
add_compiler_test(SOURCES gfortran-20200402-file1.f90 gfortran-20200402-file2.f90
LINK_ONLY LABELS PR94463)
Expand Down
7 changes: 7 additions & 0 deletions gfortran-bugs/gfortran-20201204a.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
program main
class(*), allocatable :: a, b, c
character(len=0) :: s
allocate(a, source=s) !! No problem
allocate(character(len=0)::b)
allocate(c, source=b) !! Segfault
end program
5 changes: 5 additions & 0 deletions gfortran-bugs/gfortran-20201204b.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
program main
class(*), allocatable :: a, b
allocate(a, source='') !! No problem
allocate(b, source=a) !! Segfault
end program