digint / digint/tinyfsm

Not able to compile with IAR ARM v8.20.2

Open
#24 2 comments 0 reactions 0 assignees View on GitHub
upstream bug
Dominant language
C++
Stars
1.2k
Forks
193
PR merge metrics
No merged PRs in 30d

Description

TinyFSM v.0.3.2 can't be compiled using IAR ARM compiler (V8.20.2):

![image](https://user-images.githubusercontent.com/65347993/81935999-c3089d00-95f1-11ea-917d-85de81a8ef77.png)

The compiler seems to think that the derived state classes are unreleated to the base class. Using GCC the same code compiles and works fine without any warnings.

Adding a reinterpret_cast in line 137 allows compilation, but maybe there is a better solution/workaround for this?

`current_state_ptr = reinterpret_cast(&_state_instance::value);`

Thanks and best regards
Marvin

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.