Skip to content

Resumable functions don't compile with gcc13 #1012

@hshose

Description

@hshose

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions