Custom Query (146 matches)
Results (13 - 15 of 146)
Ticket |
---|
#15 |
Description |
Neither of the following two versions compile: assert( ((result(int, char)){1, 4}) ); result(int, char) pass = {1, 4}; assert(pass); Removing the assert statement causes the code to compile, so the error might be in converting the result to a boolean (?!=? zero_t). The error message generated reads as follows: /home/ajbeach/cfa-cc/include/cfa/containers/result: In function ‘__checkPredicates__F___1’: /home/ajbeach/cfa-cc/include/cfa/containers/result:52:160: error: expected identifier before ‘)’ token Which works out to be about 2987:160 in the -CFA output the following line: long unsigned int _offsetof_14s_conc_result0[2] = { __builtin_offsetof(struct _conc_result0 , __has_value__b_1), __builtin_offsetof(struct _conc_result0 , ) }; Which does not seem to refer directly to any operation. The next line does refer to the notequal operation. |
#17 |
Description |
This code crashes the compiler: int main() { int (*foo)(int) = 0; } |
#18 |
Description |
I just found a note in one of the tests about a feature request. Short version is sizeof(T) does not compile. Here is the example I found. forall(otype T) union ByteView { T val; char bytes[(sizeof(int))]; // want to change to sizeof(T) }; I did test it with sizeof(T) and it produced an error, but at the same time it feels like an operation that should be allowed. I think the value is already there, just not accessible directly. |