Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x0000000000000000 in ?? ()
(gdb) up
#1 0x0000000100083017 in mup::IToken::ToString (this=0x100205528) at parser/mpIToken.cpp:185
185 return AsciiDump();
(gdb)
#2 0x00000001000dc236 in mup::FunMatrixEye::Eval (this=<value temporarily unavailable, due to optimizations>, ret=@0x100205528, a_pArg=0x100205528, argc=<value temporarily unavailable, due to optimizations>) at parser/mpFuncMatrix.cpp:183
183 n = (argc == 1) ? m : a_pArg[1]->GetInteger();
(gdb)
#3 0x00000001000281dd in mup::ParserXBase::ParseFromRPN (this=0x7fff5fbff7c0) at parser/mpParserBase.cpp:1113
1113 pFun->Eval(val, &val, nArgs);
(gdb)
#4 0x0000000100001092 in main () at muparserx.cpp:10
10 const auto evaluated = parser.Eval().GetArray();
Giving
0-0-eye()
to:using latest mupx results in a segfault: