Skip to content

Commit d801b0c

Browse files
committed
fix(idiomatic_assert): work around gfortran 14.3
1 parent 3dcba1c commit d801b0c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/julienne/julienne_assert_s.f90

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@
1212

1313
if (.not. test_diagnosis%test_passed()) then
1414
if (present(description)) then
15-
description_ = new_line('') // description // new_line('')
15+
description_ = new_line('') // description // new_line('') // test_diagnosis%diagnostics_string()
1616
else
17-
description_ = new_line('')
17+
description_ = new_line('') // test_diagnosis%diagnostics_string()
1818
end if
19-
associate(diagnostics_string => description_ // test_diagnosis%diagnostics_string())
20-
call assert_always(.false., diagnostics_string%string(), file, line)
21-
end associate
19+
call assert_always(.false., description_, file, line)
2220
end if
2321

2422
end procedure

0 commit comments

Comments
 (0)