Skip to content

remove some dependence on errors.d - #23757

Merged
thewilsonator merged 1 commit into
dlang:masterfrom
WalterBright:errors2
Aug 31, 2026
Merged

remove some dependence on errors.d#23757
thewilsonator merged 1 commit into
dlang:masterfrom
WalterBright:errors2

Conversation

@WalterBright

Copy link
Copy Markdown
Member

No description provided.

@thewilsonator
thewilsonator merged commit f2b7b11 into dlang:master Aug 31, 2026
33 of 42 checks passed
@WalterBright
WalterBright deleted the errors2 branch August 31, 2026 02:09
thewilsonator pushed a commit that referenced this pull request Sep 3, 2026
One of #23757 #23758 #23759 introduced forward reference regression when
compiling dmd one module at a time.

Remove the problematic import to break the cycle.

```
dmd/errors.d:227:1: error: enum dmd.errors.Classification is forward referenced when looking for 'error'
  227 | enum Classification : Color
      | ^
dmd/dtemplate.d:924:70: error: no property 'error' for type 'Classification'. Did you mean 'Classification.error' ?
  924 |     extern(D) final void printInstantiationTrace(Classification cl = Classification.error,
      |                                                                      ^
dmd/dtemplate.d:1130:27: error: function dmd.dtemplate.TemplateMixin.kind does not override any function
 1130 |     override const(char)* kind() const
      |                           ^
dmd/dtemplate.d:1135:19: error: function dmd.dtemplate.TemplateMixin.accept does not override any function
 1135 |     override void accept(Visitor v)
      |                   ^
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants