Skip to content

[BugFix] segfault with gfortran 10.4.0 -- NWTC_Base.f90#1542

Merged
deslaughter merged 1 commit into
OpenFAST:devfrom
andrew-platt:b/FLANG_nwtclibs
Apr 21, 2023
Merged

[BugFix] segfault with gfortran 10.4.0 -- NWTC_Base.f90#1542
deslaughter merged 1 commit into
OpenFAST:devfrom
andrew-platt:b/FLANG_nwtclibs

Conversation

@andrew-platt

Copy link
Copy Markdown
Collaborator

PR #1538 introduced a seg-fault with some gfortran compilers. Added an #ifdef for the Flang compiler

Feature or improvement description
PR #1538 can cause segmentation faults with some compilers. I noticed this with gfotran 10.4.0: see #1538 (comment) for errors with gfortran 10.4.0 (Mac, Ventura 13.3, Intel) for a screenshot.

To remedy this I wrapped the changes to the NWTC_Base.f90 introduced in #1538 in an #ifdef.

Related issue, if one exists
#1538 (comment)
#1538

Impacted areas of the software
Compiler only

Additional supporting information

Test results, if applicable

PR OpenFAST#1538 introduced a seg-fault with some gfortran compilers.  Added an #ifdef for the Flang compiler
@deslaughter deslaughter merged commit 907d23e into OpenFAST:dev Apr 21, 2023
@andrew-platt andrew-platt deleted the b/FLANG_nwtclibs branch April 22, 2023 00:18
@andrew-platt andrew-platt mentioned this pull request May 12, 2023
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants