# OpenMP error with allocatable character variables

**URL:** <https://fortran-lang.discourse.group/t/openmp-error-with-allocatable-character-variables/9009>\
**Category:** Uncategorized\
**Created:** [December 26, 2024, 8:16pm UTC](https://fortran-lang.discourse.group/t/openmp-error-with-allocatable-character-variables/9009 "2024-12-26T20:16:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![gardhor](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/gardhor/32/88_2.png) [@gardhor](https://fortran-lang.discourse.group/u/gardhor)\
**Post date:** [December 27, 2024, 11:04am UTC](https://fortran-lang.discourse.group/t/openmp-error-with-allocatable-character-variables/9009/2 "2024-12-27T11:04:45Z")

</div>

Hi,

I have some issues with allocatable character string with openmp and gfortran.  
See this post :

> [@Integer or real to character string: bug with gfortran with OpenMP?](https://fortran-lang.discourse.group/t/integer-or-real-to-character-string-bug-with-gfortran-with-openmp/8408):
>
> This post is related this “[Equivalent of str function (from python) in Fortran](https://fortran-lang.discourse.group/t/equivalent-of-str-function-from-python-in-fortran/2683/1)”, but I prefer to open a new post. For a large code, I want to use a function equivalent to « TO\_string » to convert an integer or a real to a character string to create some log output. There are several implementations, I’ve got one that is similar to those in the Fortran stdlib or other libraries (fstring or M\_msg). In all these procedures, the integer (except for Fortran stdlib) or the real are written in a chara…

As far as I know, this problem is not solved.

---

_[View the full topic](https://fortran-lang.discourse.group/t/openmp-error-with-allocatable-character-variables/9009)._
