Thread overview |
---|
May 07, 2018 `recursive template expansion` error msg isn't informative | ||||
---|---|---|---|---|
| ||||
I get the error like: ``` ./foo/bar/baz/builder.d(57,23): Error: template instance `staticMap!(DebugTypeMapper, BaseDebuggerTypes)` recursive template expansion ``` That's all. It doesn's print instantiations stack so I can't track back the reason. Could someone give an advice how to struggle with such error? |
May 07, 2018 Re: `recursive template expansion` error msg isn't informative | ||||
---|---|---|---|---|
| ||||
Posted in reply to drug | On Monday, 7 May 2018 at 10:28:14 UTC, drug wrote:
> I get the error like:
> ```
> ./foo/bar/baz/builder.d(57,23): Error: template instance `staticMap!(DebugTypeMapper, BaseDebuggerTypes)` recursive template expansion
> ```
> That's all. It doesn's print instantiations stack so I can't track back the reason. Could someone give an advice how to struggle with such error?
Could you give us some code snippet to eventually reproduce it?
|
May 08, 2018 Re: `recursive template expansion` error msg isn't informative | ||||
---|---|---|---|---|
| ||||
Posted in reply to Timoses | 07.05.2018 17:22, Timoses пишет:
> On Monday, 7 May 2018 at 10:28:14 UTC, drug wrote:
>> I get the error like:
>> ```
>> ./foo/bar/baz/builder.d(57,23): Error: template instance `staticMap!(DebugTypeMapper, BaseDebuggerTypes)` recursive template expansion
>> ```
>> That's all. It doesn's print instantiations stack so I can't track back the reason. Could someone give an advice how to struggle with such error?
>
> Could you give us some code snippet to eventually reproduce it?
It's non trivial and not small code base and I failed to make a reduced case. I've found workaround just importing from the module some (any in fact) symbol. I just replaced:
```
import foo.bar;
```
by
```
import foo.bar; // here I need all symbols from the module
import foo.bar : anySymbolFromFooBar;
```
|
Copyright © 1999-2021 by the D Language Foundation