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

compiler rejects valid ull UInt128 literals #313

Open
stepancheg opened this issue Aug 7, 2012 · 2 comments
Open

compiler rejects valid ull UInt128 literals #313

stepancheg opened this issue Aug 7, 2012 · 2 comments

Comments

@stepancheg
Copy link
Collaborator

seems like compiler rejects valid uint128 literals. Like in this code:

main() {
    var a = 0xff0102030405060708090a0b0c0d0e0f_ull;
}
###############################
main() {
    var a = 0xff0102030405060708090a0b0c0d0e0f_ull;
------------^
}

###############################
./tmp.clay(2,12): error: uint128 literal out of range

compilation context: 
    main()
  ./lib-clay/core/system/system.clay(22,30):
    runMain(Int32, Pointer[Pointer[Int8]], Static[main])
  ./lib-clay/core/system/system.clay(32,13):
    callMain(Static[main], Int32, Pointer[Pointer[Int8]])
    external main
@jckarter
Copy link
Owner

jckarter commented Aug 7, 2012

Literals larger than 64 bits aren't supported yet. GCC and clang have similar limitations. Note that int128 will only work on Unix x86-64 platforms as well.

@stepancheg
Copy link
Collaborator Author

In that case compiler message that explains that it is know issue, would help.

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

No branches or pull requests

2 participants