Skip to content

remove more dependence on errors.d - #23758

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

remove more dependence on errors.d#23758
thewilsonator merged 1 commit into
dlang:masterfrom
WalterBright:errors3

Conversation

@WalterBright

Copy link
Copy Markdown
Member

No description provided.

@WalterBright
WalterBright force-pushed the errors3 branch 2 times, most recently from aaadf32 to 64ba882 Compare August 31, 2026 05:00
@thewilsonator
thewilsonator merged commit e8d5ee3 into dlang:master Aug 31, 2026
41 of 42 checks passed
@WalterBright
WalterBright deleted the errors3 branch August 31, 2026 06:48
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