Skip to content

Commit

Permalink
fix(crayftn): work around cray associate bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rouson committed Aug 2, 2024
1 parent 0591a21 commit f6dae5f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions example/derived_type_diagnostic.F90
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,9 @@ program diagnostic_data_pattern

type(stuff_t) stuff

#ifndef _CRAYFTN
associate (i => stuff_t(z=(0.,1.)))
call assert(i%defined(), "main: i%defined()", characterizable_stuff_t(i))!Passes: constructor postcondition ensures defined data
end associate
#else
block
type(stuff_t) stuff
stuff = stuff_t(z=(0.,1.))
call assert(stuff%defined(), "main: i%defined()", characterizable_stuff_t(stuff))
end block
#endif

print *, stuff%z() ! Fails: accessor precondition catches use of undefined data

Expand Down

0 comments on commit f6dae5f

Please sign in to comment.