Re: `recursive template expansion` error msg isn't informative

2018-05-08 Thread drug via Digitalmars-d-learn

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;
```



Re: `recursive template expansion` error msg isn't informative

2018-05-07 Thread Timoses via Digitalmars-d-learn

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?


`recursive template expansion` error msg isn't informative

2018-05-07 Thread drug via Digitalmars-d-learn

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?