#60 CPP-Version: codegen bug for User-Defined FUNCTIONs

unclassified
unread
None
7
2014-07-28
2014-01-10
Simon Sobisch
No

See expected failure in test [User-Defined FUNCTION with/without parameter] - see run_functions.at (test added in [r167]):

/tmp/cob2337_0.cpp: In function 'cob_field* WITHPAR(cob_field**, int, cob_field*)':
/tmp/cob2337_0.cpp:249: error: invalid conversion from 'void*' to 'cob_func_loc*'
/tmp/cob2337_0.cpp: In function 'cob_field* WITHPAR_(int, unsigned char*)':
/tmp/cob2337_0.cpp:321: error: invalid conversion from 'char*' to 'unsigned char*'
/tmp/cob2337_0.cpp: In function 'cob_field* WITHOUTPAR(cob_field**, int)':
/tmp/cob2337_0.cpp:397: error: invalid conversion from 'void*' to 'cob_func_loc*'
/tmp/cob2337_0.cpp: In function 'cob_field* WITHOUTPAR_(int)':
/tmp/cob2337_0.cpp:466: error: invalid conversion from 'char*' to 'unsigned char*'

Simon

Related

Commit: [r167]

Discussion

  • Simon Sobisch
    Simon Sobisch
    2014-03-07

    Just to add this information:
    Adding -fpermissive to the g++ command line leading g++ to handle these errors as warnings, to do this via cobc add '-A -fpermissive' to it's command line (being a workaround until the codegen bug is fixed)