Bug 23178 – Unknown error using alias to `__traits` evaluated as expression
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-06-12T09:43:36Z
Last change time
2022-06-12T10:48:37Z
Keywords
pull
Assigned to
No Owner
Creator
Boris Carvajal
Comments
Comment #0 by boris2.9 — 2022-06-12T09:43:36Z
On master, test:
alias a = __traits(isIntegral, 1.1);
pragma(msg, a);
Output:
Error: unknown, please file report on issues.dlang.org
test.d(2): while evaluating `pragma(msg, a)`
It should print 'can't alias expression...'
Comment #1 by dlang-bot — 2022-06-12T09:56:21Z
@BorisCarvajal created dlang/dmd pull request #14203 "Fix Issue 23178 - Unknown error using alias to `__traits` evaluated as expression" fixing this issue:
- Fix Issue 23178 - Unknown error using alias to `__traits` evaluated as expression
https://github.com/dlang/dmd/pull/14203
Comment #2 by dlang-bot — 2022-06-12T10:48:37Z
dlang/dmd pull request #14203 "Fix Issue 23178 - Unknown error using alias to `__traits` evaluated as expression" was merged into master:
- 7d624acb60905b16bb037cd1d9379e295dd09582 by Boris Carvajal:
Fix Issue 23178 - Unknown error using alias to `__traits` evaluated as expression
https://github.com/dlang/dmd/pull/14203