Closed
Description
Repro: https://godbolt.org/z/j3o96sYd1
clang trunk accepts the program, but miscompiles it.
gcc trunk compiles the program correctly.
The program implements a simple interpreter using the a dispatch table as described, e.g., in https://eli.thegreenplace.net/2012/07/12/computed-goto-for-efficient-dispatch-tables.
The problem only occurs when combining coroutines with a dispatch table and a computed goto. A switch-based interpreter works as expected.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done