Skip to content

clang issue with bitshifts #4894

Closed
Closed

Description

@1RyanK

Describe the bug
When running shuffle with Feistel, the following happens:

 >>> rng.shuffle(pda, method="Feistel", feistel_rounds=18)
 /home/drandy/projects/arkouda/src/RandMsg.chpl:1847: error: halt reached - Cannot bitshift 14400642229779677672 by 64 because 64 is >= the bitwidth of uint(64)

 >>> rng.shuffle(pda, method="Feistel", feistel_key=0x1234_5678_9ABC_DEF0, feistel_rounds=18)
/home/drandy/projects/arkouda/src/RandMsg.chpl:1847: error: halt reached - Cannot bitshift 7347674315361137024 by 64 because 64 is >= the bitwidth of uint(64)

This seems to only happen with clang.

Activity

  1. self-assigned this
    on Sep 12, 2025
  2. added
    bug
    on Sep 12, 2025
  3. added a commit that references this issue on Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions