Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
7402c95
Fix issue 20012 - clear diagnostic for CTFE array cast in UDA context
usefahmed07 Sep 9, 2026
4148731
fix: avoid GC allocation in onArrayCastError CTFE path
usefahmed07 Sep 9, 2026
dc9139d
test: disable fail20012.d on 32-bit targets
usefahmed07 Sep 9, 2026
de29b06
test: fix line numbers in fail20012.d after adding DISABLED directive
usefahmed07 Sep 9, 2026
2408300
chore: trigger CI re-run
usefahmed07 Sep 9, 2026
e45383a
chore: trigger CI re-run
usefahmed07 Sep 9, 2026
d7eadd9
chore: trigger CI re-run
usefahmed07 Sep 9, 2026
8879645
chore: trigger CI re-run
usefahmed07 Sep 9, 2026
f65b8c4
chore: trigger CI re-run
usefahmed07 Sep 9, 2026
48c0164
chore: trigger CI re-run (unrelated GitHub runner image Chrome apt mi…
usefahmed07 Sep 9, 2026
71612da
chore: trigger CI re-run (unrelated GitHub runner image Chrome apt mi…
usefahmed07 Sep 9, 2026
f23adf6
chore: trigger CI re-run
usefahmed07 Sep 9, 2026
2b42c3b
Fix issue 20012: use CTFE scope for UDA attribute semantic
usefahmed07 Sep 10, 2026
8daa16a
Revert druntime workaround and expressionsem.d lowering-condition change
usefahmed07 Sep 10, 2026
e505eeb
Fix bad revert: restore issue 5010/18586 fixes lost in previous revert
usefahmed07 Sep 10, 2026
05f4230
Fix wrong issue number in fail20012.d comment (22546 -> 20012)
usefahmed07 Sep 10, 2026
a0b8e41
Remove incorrect issue link from fail20012.d (no matching issue found)
usefahmed07 Sep 10, 2026
8df6a24
Restore correct bugzilla link (id=22546) in fail20012.d
usefahmed07 Sep 10, 2026
2379886
Use GitHub issue link instead of bugzilla in fail20012.d
usefahmed07 Sep 10, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion compiler/src/dmd/dsymbolsem.d
Original file line number Diff line number Diff line change
Expand Up @@ -4014,7 +4014,9 @@ private extern(C++) final class DsymbolSemanticVisitor : Visitor
//printf("UserAttributeDeclaration::semantic() %p\n", this);
if (uad.decl && !uad._scope)
uad.Dsymbol.setScope(sc); // for function local symbols
arrayExpressionSemantic(uad.atts.peekSlice(), sc, true);
Scope* sc2 = sc.startCTFE();
arrayExpressionSemantic(uad.atts.peekSlice(), sc2, true);
sc2.endCTFE();
return attribSemantic(uad);
}

Expand Down
9 changes: 9 additions & 0 deletions compiler/test/fail_compilation/fail20012.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* https://github.com/dlang/dmd/issues/20012
TEST_OUTPUT:
---
fail_compilation/fail20012.d(8): Error: array cast from `string` to `dstring` is not supported at compile time
fail_compilation/fail20012.d(9): Error: array cast from `string` to `dstring` is not supported at compile time
---
*/
enum a = cast(dstring) "what"c;
@(cast(dstring) "huh"c) int x;
Loading