Author
anonymous
over 6 years ago
Language
D
Compiler
dmd HEAD v2.083.0
Options
Author
anonymous
over 6 years ago
$ dmd prog.d -ofprog.exe
/opt/wandbox/dmd-head/linux/bin64/../../src/phobos/std/regex/package.d(444): Error: cannot convert `&immutable(Regex!char)` to `Regex!char*` at compile time
/opt/wandbox/dmd-head/linux/bin64/../../src/phobos/std/regex/package.d(774): called from here: `prog.getRe()`
/opt/wandbox/dmd-head/linux/bin64/../../src/phobos/std/regex/package.d(937): called from here: `matchOnce(input, re)`
prog.d(6): called from here: `matchFirst("foo/bar", ctr)`
---
ERROR: This is a compiler bug.
Please report it via https://issues.dlang.org/enter_bug.cgi
with, preferably, a reduced, reproducible example and the information below.
DustMite (https://github.com/CyberShadow/DustMite/wiki) can help with the reduction.
---
DMD v2.083.0
predefs DigitalMars Posix linux ELFv1 CRuntime_Glibc CppRuntime_Gcc LittleEndian D_Version2 all D_SIMD D_InlineAsm_X86_64 X86_64 D_LP64 D_PIC assert D_ModuleInfo D_Exceptions D_TypeInfo D_HardFloat
binary /opt/wandbox/dmd-head/linux/bin64/dmd
version v2.083.0
config /opt/wandbox/dmd-head/linux/bin64/dmd.conf
DFLAGS -I/opt/wandbox/dmd-head/linux/bin64/../../src/phobos -I/opt/wandbox/dmd-head/linux/bin64/../../src/druntime/import -L-L/opt/wandbox/dmd-head/linux/bin64/../lib64 -L--export-dynamic -fPIC
---
core.exception.AssertError@dmd/dinterpret.d(4968): Assertion failure
----------------
??:? _d_assertp [0x772d5d]
dmd/dinterpret.d:4968 _ZN11Interpreter5visitEP7CallExp [0x56fe49]
dmd/expression.d:4715 _ZN7CallExp6acceptEP7Visitor [0x5c00ad]
dmd/dinterpret.d:6322 dmd.expression.Expression dmd.dinterpret.interpret(dmd.expression.UnionExp*, dmd.expression.Expression, dmd.dinterpret.InterState*, dmd.dinterpret.CtfeGoal) [0x57423b]
dmd/dinterpret.d:3119 _ZN11Interpreter5visitEP6UnaExp [0x56a9a7]
dmd/parsetimevisitor.d:205 _ZN16ParseTimeVisitorI10ASTCodegenE5visitEP6NotExp [0x671f09]
dmd/expression.d:4890 _ZN6NotExp6acceptEP7Visitor [0x5c0575]
dmd/dinterpret.d:6322 dmd.expression.Expression dmd.dinterpret.interpret(dmd.expression.UnionExp*, dmd.expression.Expression, dmd.dinterpret.InterState*, dmd.dinterpret.CtfeGoal) [0x57423b]
dmd/dinterpret.d:6332 dmd.expression.Expression dmd.dinterpret.interpret(dmd.expression.Expression, dmd.dinterpret.InterState*, dmd.dinterpret.CtfeGoal) [0x574298]
dmd/dinterpret.d:71 dmd.expression.Expression dmd.dinterpret.ctfeInterpret(dmd.expression.Expression) [0x562995]
dmd/expression.d:1527 _ZN10Expression13ctfeInterpretEv [0x5b8d08]
dmd/staticcond.d:106 bool dmd.staticcond.evalStaticCondition(dmd.dscope.Scope*, dmd.expression.Expression, dmd.expression.Expression, ref bool) [0x6888d4]
dmd/semantic2.d:104 _ZN16Semantic2Visitor5visitEP12StaticAssert [0x68a57c]
dmd/staticassert.d:64 _ZN12StaticAssert6acceptEP7Visitor [0x65bce6]
dmd/semantic2.d:80 _Z9semantic2P7DsymbolP5Scope [0x68a4bc]
dmd/statementsem.d:2413 _ZN24StatementSemanticVisitor5visitEP21StaticAssertStatement [0x67f538]
dmd/statement.d:1586 _ZN21StaticAssertStatement6acceptEP7Visitor [0x659d0d]
dmd/statementsem.d:125 _Z17statementSemanticP9StatementP5Scope [0x677f56]
dmd/statementsem.d:234 _ZN24StatementSemanticVisitor5visitEP17CompoundStatement [0x67831b]
dmd/statement.d:956 _ZN17CompoundStatement6acceptEP7Visitor [0x6588e5]
dmd/statementsem.d:125 _Z17statementSemanticP9StatementP5Scope [0x677f56]
dmd/semantic3.d:571 _ZN16Semantic3Visitor5visitEP15FuncDeclaration [0x68cf9a]
dmd/func.d:2377 _ZN15FuncDeclaration6acceptEP7Visitor [0x5eb965]
dmd/semantic3.d:82 _Z9semantic3P7DsymbolP5Scope [0x68b8f4]
dmd/semantic3.d:195 _ZN16Semantic3Visitor5visitEP6Module [0x68bce7]
dmd/dmodule.d:1271 _ZN6Module6acceptEP7Visitor [0x57d699]
dmd/semantic3.d:82 _Z9semantic3P7DsymbolP5Scope [0x68b8f4]
dmd/mars.d:641 int dmd.mars.tryMain(ulong, const(char)**) [0x623afa]
dmd/mars.d:900 _Dmain [0x624c82]
Exit Code:
1