# VOLATILE: needed?

**URL:** <https://fortran-lang.discourse.group/t/volatile-needed/1648>\
**Category:** Uncategorized\
**Created:** [August 7, 2021, 9:38am UTC](https://fortran-lang.discourse.group/t/volatile-needed/1648 "2021-08-07T09:38:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sblionel](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/sblionel/32/853_2.png) [@sblionel](https://fortran-lang.discourse.group/u/sblionel)\
**Post date:** [August 7, 2021, 4:10pm UTC](https://fortran-lang.discourse.group/t/volatile-needed/1648/2 "2021-08-07T16:10:04Z")

</div>

Yes, `VOLATILE` is required in this context. What happens when you omit it all depends on how the selected compiler chooses to optimize.

---

_[View the full topic](https://fortran-lang.discourse.group/t/volatile-needed/1648)._
