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

clamp with smaller-than-int T1 fails to compile with literal parameters #10549

Open
dlangBugzillaToGithub opened this issue May 3, 2024 · 0 comments
Labels
Severity:Regression Issues that are regressions/PRs that fix regressions

Comments

@dlangBugzillaToGithub
Copy link

elpenguino+D reported this on 2024-05-03T16:54:12Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=24533

Description

Since DMD 2.099, this code fails to compile:
```
assert(clamp(ubyte(4), 1, 5) == 4);
```

Likely cause is https://github.com/dlang/phobos/pull/8293
@LightBender LightBender removed the P1 label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Severity:Regression Issues that are regressions/PRs that fix regressions
Projects
None yet
Development

No branches or pull requests

2 participants