D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 23178 - Unknown error using alias to `__traits` evaluated as expression
Summary: Unknown error using alias to `__traits` evaluated as expression
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2022-06-12 09:43 UTC by Boris Carvajal
Modified: 2022-06-12 10:48 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 Boris Carvajal 2022-06-12 09:43:36 UTC
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 Dlang Bot 2022-06-12 09:56:21 UTC
@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 Dlang Bot 2022-06-12 10:48:37 UTC
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