Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal error: getStrOrChar #1788

Closed
flaviut opened this issue Dec 29, 2014 · 1 comment
Closed

internal error: getStrOrChar #1788

flaviut opened this issue Dec 29, 2014 · 1 comment

Comments

@flaviut
Copy link
Contributor

flaviut commented Dec 29, 2014

echo "hello" & char(ord(' ')) & "world"
temp.nim(1, 23) Error: internal error: getStrOrChar
Traceback (most recent call last)
nim.nim(91)              nim
nim.nim(55)              handleCmdLine
main.nim(273)            mainCommand
main.nim(73)             commandCompileToC
modules.nim(204)         compileProject
modules.nim(152)         compileModule
passes.nim(193)          processModule
passes.nim(137)          processTopLevelStmt
sem.nim(415)             myProcess
sem.nim(389)             semStmtAndGenerateGenerics
semstmts.nim(1306)       semStmt
semexprs.nim(844)        semExprNoType
semexprs.nim(2045)       semExpr
semexprs.nim(1647)       semMagic
semexprs.nim(827)        semDirectOp
semexprs.nim(709)        semOverloadedCallAnalyseEffects
semcall.nim(297)         semOverloadedCall
semcall.nim(141)         resolveOverloads
semcall.nim(59)          pickBestCandidate
sigmatch.nim(1464)       matches
sigmatch.nim(1432)       matchesAux
sigmatch.nim(1303)       prepareOperand
semexprs.nim(26)         semOperand
semexprs.nim(2045)       semExpr
semexprs.nim(1647)       semMagic
semexprs.nim(827)        semDirectOp
semexprs.nim(709)        semOverloadedCallAnalyseEffects
semcall.nim(297)         semOverloadedCall
semcall.nim(141)         resolveOverloads
semcall.nim(59)          pickBestCandidate
sigmatch.nim(1464)       matches
sigmatch.nim(1432)       matchesAux
sigmatch.nim(1303)       prepareOperand
semexprs.nim(26)         semOperand
semexprs.nim(2045)       semExpr
semexprs.nim(1647)       semMagic
semexprs.nim(828)        semDirectOp
semexprs.nim(821)        afterCallActions
semexprs.nim(642)        evalAtCompileTime
semfold.nim(690)         getConstExpr
semfold.nim(598)         foldConStrStr
ast.nim(1522)            getStrOrChar
msgs.nim(850)            internalError
msgs.nim(827)            liMessage
msgs.nim(735)            handleError

Reproduced on ea4160b

@flaviut
Copy link
Contributor Author

flaviut commented Dec 29, 2014

let a = char(ord(' '))
echo "hello" & a & "world"

works fine.

@Araq Araq closed this as completed in 7f415b5 Dec 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant