-
Notifications
You must be signed in to change notification settings - Fork 1.1k
call of inline method of result of other inline method produce a tree with incorrect ownity, (crashed with -Ycheck:macros) #11251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
crash-yycheck-macros-light.tar.gz
|
but -Ycheck:all (as default option in TestBootsrapClass). gives us new surprises ...
Exception in thread "main" dotty.tools.dotc.core.Denotations$StaleSymbol: stale symbol; module class SL$#3421 in module class i11251, defined in Period(1..63, run = 2), is referred to in run Period(17..17, run = 3)
at dotty.tools.dotc.core.Denotations$SingleDenotation.staleSymbolError(Denotations.scala:943)
at dotty.tools.dotc.core.Denotations$SingleDenotation.bringForward(Denotations.scala:728)
at dotty.tools.dotc.core.Denotations$SingleDenotation.toNewRun$1(Denotations.scala:791)
at dotty.tools.dotc.core.Denotations$SingleDenotation.current(Denotations.scala:865)
at dotty.tools.dotc.core.Symbols$Symbol.recomputeDenot(Symbols.scala:122)
at dotty.tools.dotc.core.Symbols$Symbol.computeDenot(Symbols.scala:116)
at dotty.tools.dotc.core.Symbols$Symbol.denot(Symbols.scala:109)
....
|
// track-down situation to call of. registeredCompanion(SymDenotations.scala:2207) when actually companion class is not exists (adding dummy ComanionClass fixes the situation). |
submitted #11331 as a separate unrelated issue, (I guess after fixing one, will be able to submit path with test-cases) |
fix submitted in #11335 |
Compiler version
Latest Dotty nightly build version: 3.0.0-RC1-bin-20210128-ce684de-NIGHTLY
Minimized code
class X.scala
Main.scala:
compile with -Ycheck:macros flag (flag is essential)
Output (click arrow to expand)
The text was updated successfully, but these errors were encountered: