Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resumable functions don't compile with gcc13 #1012

Open
hshose opened this issue May 2, 2023 · 1 comment
Open

Resumable functions don't compile with gcc13 #1012

hshose opened this issue May 2, 2023 · 1 comment

Comments

@hshose
Copy link
Contributor

hshose commented May 2, 2023

When I compile protothreaded code with my gcc 13

e.g., the examples/nucleo_g474re/max31855/, I get the following error without any further hints from the compiler:

main.cpp: In member function 'bool ThermocoupleThread::run()':
modm/src/modm/processing/protothread/macros.hpp:91:22: error: jump to case label
   91 |                 case __LINE__: \
      |                      ^~~~~~~~

My gcc is arm-none-eabi-gcc --version: arm-none-eabi-gcc (Arch Repository) 13.1.0

@salkinium
Copy link
Member

Well… it is undefined behavior. Just in time to switch to fibers with #1001! (no seriously, we're switching to fibers, I'm tired of this bullshit).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants