Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c++20 does not like arithmetic between different enumeration types #298

Merged
merged 1 commit into from
Sep 3, 2022

Conversation

Ninja3047
Copy link
Contributor

make errors go away with static_cast

@Ninja3047 Ninja3047 requested a review from frabert September 2, 2022 21:58
@github-actions
Copy link

github-actions bot commented Sep 2, 2022

See the diff generated by this PR for the tests here: https://github.com/lifting-bits/rellic/actions/runs/2982045772

fizzbuzz.bc

--- /dev/fd/63	2022-09-02 22:09:36.813970650 +0000
+++ /dev/fd/62	2022-09-02 22:09:36.813970650 +0000
@@ -11,7 +11,7 @@
     var1 = 0U;
     while ((int)var1 < 30)
         {
-            if ((int)var1 % 3 != 0U || !((int)var1 % 5 == 0U || (int)var1 % 3 != 0U)) {
+            if (!((int)var1 % 3 != 0U || (int)var1 % 5 == 0U) || (int)var1 % 3 != 0U) {
                 if ((int)var1 % 3 != 0U) {
                     if ((int)var1 % 5 != 0U) {
                         printf("%d\n", var1);

typedefs_of_typedefs.bc

switch_loop.bc

func_cond_zero_arg.bc

fcmp.bc

conflicting_names.bc

struct.bc

issue_183_literal_structs.bc

zeroinit.bc

issue_127_uint128_t_lit.bc

struct_swap.bc

init_list.bc

ret0.bc

bool.bc

short.bc

cast.bc

nullptr.bc

nested_struct.bc

array_swap.bc

binops.bc

bitmask.bc

loop.bc

float.bc

reg_test_structure_fields.bc

vectors.bc

funcptr.bc

goto_loop.bc

branch.bc

bitops.bc

trunc.bc

inttoptr.bc

issue_4.bc

issue_123_uint128_t.bc

fizzbuzz_stateful.bc

issue_94_strncmp.bc

global_using_function_decl.bc

byval_struct.bc

nested_while.bc

func_cond_two_arg.bc

conflicting_global.bc

assert.bc

zext.bc

switch.bc

template_parameter_pack.bc

byval_tail_nogep.ll

byval_tail_gep.ll

@pgoodman pgoodman merged commit cd60369 into master Sep 3, 2022
@pgoodman pgoodman deleted the will/fix-c++20-issue branch September 3, 2022 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants