Skip to content

Conversation

@iguessthislldo
Copy link
Member

Fixes #1713 and adds some regression tests for constant expressions. Also tried to do some more cleanup and minor fixes related to #840.

Fixes DOCGroup#1713 and adds a test.

Also makes some other minor fixes and improvments to AST_Expression.
const double div = a / b;
const double mul = a * b;
const double add = a + b;
const double sub = a - b;
Copy link
Member

@jwillemsen jwillemsen Nov 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add long double and long long test cases?

@mitza-oci mitza-oci merged commit ffb84e7 into DOCGroup:master Nov 6, 2021
iguessthislldo added a commit to iguessthislldo/ACE_TAO that referenced this pull request Nov 9, 2021
Backport of DOCGroup#1715

Fixes DOCGroup#1713 and adds some regression tests for constant expressions.
Also tried to do some more cleanup and minor fixes related to DOCGroup#840.
@jwillemsen
Copy link
Member

One new warning, see https://buildlogs.remedy.nl/win_vs2019_opendds_debug/

[Details] 470>X:\BUILD\DOC_ROOT\TAO\TAO_IDL\ast\ast_expression.cpp(1835,12): warning C4804: '%': unsafe use of type 'bool' in operation [X:\BUILD\DOC_ROOT\TAO\TAO_IDL\TAO_IDL_FE.vcxproj]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

tao_idl fails to compile const double variable assignments with math

3 participants