Opened 6 years ago
Last modified 6 years ago
#106 closed defect
waitfor problem — at Version 1
Reported by: | pabuhr | Owned by: | Thierry |
---|---|---|---|
Priority: | minor | Component: | cfa-cc |
Version: | 1.0 | Keywords: | |
Cc: |
Description (last modified by )
#include <fstream.hfa> #include <thread.hfa> thread Gortn { }; void mem1( Gortn & mutex gortn ) {} void main( Gortn & gortn ) with( gortn ) { for ( ;; ) { waitfor( mem1, gortn ) sout | nl; } }
Missing compound around waitfor post statement.
cfa test1.c CFA Version 1.0.0 (debug) test1.c: In function '_X4mainFv_S5Gortn__1': test1.c:10:29: error: a label can only be part of a statement and a declaration is not a statement } ^ test1.c:10:100: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token } ^ test1.c:9:2403: error: '_thunk1' undeclared (first use in this function) waitfor( mem1, gortn ) sout | endl;
Note: See
TracTickets for help on using
tickets.
Updated to use new newlines