trilinos / ForTrilinos

ForTrilinos provides portable object-oriented Fortran interfaces to Trilinos C++ packages.
https://trilinos.github.io/ForTrilinos
BSD 3-Clause "New" or "Revised" License
24 stars 12 forks source link

IoC drivers segfault with Flang when releasing base #253

Open aprokop opened 5 years ago

aprokop commented 5 years ago

I updated the container to Flang 20180612. The tests ForTrilinosInterface_test_solver_handle_test_fortran and ForTrilinosInterface_test_nox_fortran now segfault. Commenting out base class release fixes that.

I'm attaching a simpler reproducer. If base is commented out, it runs. Otherwise segfaults.

It is also funny that commenting out code inside my_apply while keeping base release also makes it pass. Weird.

aprokop commented 5 years ago

For now, I workaround this issue in the drivers by hiding base release behind __GNUC__. I would have preferred to check for __clang__ but that one seems undefined when compiling with Flang.