Opened 6 years ago

Closed 5 years ago

#106 closed defect (fixed)

waitfor problem

Reported by: pabuhr Owned by: Thierry
Priority: minor Component: cfa-cc
Version: 1.0 Keywords:
Cc:

Description (last modified by Thierry Delisle)

#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;

Change History (2)

comment:1 Changed 5 years ago by Thierry Delisle

Description: modified (diff)

Updated to use new newlines

comment:2 Changed 5 years ago by Thierry Delisle

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.