Issue 24533 - clamp with smaller-than-int T1 fails to compile with literal parameters
Summary: clamp with smaller-than-int T1 fails to compile with literal parameters
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-03 16:54 UTC by elpenguino+D
Modified: 2024-12-01 16:42 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description elpenguino+D 2024-05-03 16:54:12 UTC
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
Comment 1 dlangBugzillaToGithub 2024-12-01 16:42:28 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/10549

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB