flang-compiler / f18

F18 is a front-end for Fortran intended to replace the existing front-end in the Flang compiler
230 stars 48 forks source link

Add explicit nullptr check in initialisation of inDoConstruct. #1083

Closed DavidTruby closed 4 years ago

DavidTruby commented 4 years ago

This static cast is needed as we are using braced initialisation here so implicit narrowing conversions (such as pointer to bool) are not allowed.

Fixes #1079

tskeith commented 4 years ago

@DavidTruby, what's the plan for this PR?

DavidTruby commented 4 years ago

Sorry, your comment slipped under my radar! Happy to go with your suggestion, I'll change it and push.