Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3642 from 9rnsr/fix12397
Issue 12397 - CTFE ICE CompiledCtfeFunction::walkAllVars with 2.065
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/ice12397.d(12): Error: undefined identifier tokenLookup | ||
--- | ||
*/ | ||
|
||
struct DSplitter | ||
{ | ||
enum Token : int | ||
{ | ||
max = tokenLookup.length | ||
} | ||
|
||
immutable string[Token.max] tokenText; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/ice12836.d(9): Error: undefined identifier C | ||
fail_compilation/ice12836.d(9): Error: undefined identifier K | ||
--- | ||
*/ | ||
|
||
immutable C L = 1 << K; |