[Issue 23979] 2.104 segfaults

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 8 12:55:34 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=23979

Dennis <dkorpel at live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dkorpel at live.nl

--- Comment #1 from Dennis <dkorpel at live.nl> ---
The segfaults happens in:
```
ExpressionSemanticVisitor::visit(PtrExp*) (this=0x7fffffff69d8,
exp=0x7fffeb62d720) at src/dmd/expressionsem.d:7442
7442            Type tb = exp.e1.type.toBasetype();
(gdb) bt
#0  ExpressionSemanticVisitor::visit(PtrExp*) (this=0x7fffffff69d8,
exp=0x7fffeb62d720) at src/dmd/expressionsem.d:7442
#1  0x00005555559b66b6 in PtrExp::accept(Visitor*) (this=0x7fffeb62d720,
v=0x7fffffff69d8) at src/dmd/expression.d:5481
```

The PtrExp in question comes from this line:

source/mud/memory/smartpointers.d:179
```
assert(!__traits(compiles, *classPtr));
```

I'm looking into reducing it

--


More information about the Digitalmars-d-bugs mailing list