Nim icon indicating copy to clipboard operation
Nim copied to clipboard

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, an...

Results 713 Nim issues
Sort by recently updated
recently updated
newest added

This is a very involved bug that requires 5 different files. The issue is that the same type is different in different files: 1. The file to run `mem_corrupt_bug.nim` ```Nim...

Code Generation
works_but_needs_test_case

### Example The following code causes a segfault in the nim compiler itself. ```nim type Foo* {.importC, nodecl.} = object # doesn't matter if this is importC or importCpp value*:...

C++ Code Generation
Compiler Crash
works_but_needs_test_case

Proc argument type derived from generic type argument causes segfault in compiler. ### Example The following code results in compiler segfault: ```nim type Test[S: static[Natural]] = object proc run(self: Test,...

Compiler Crash

Not counting other imports of these in the standard library: - [genode/env](https://github.com/nim-lang/Nim/blob/devel/lib/genode/env.nim) in: - [ ] [rawquits](https://github.com/nim-lang/Nim/blob/96d6eee9bc33c22defb980fc0953c8e55f363ab2/lib/system/rawquits.nim#L7) - [ ] [genode/alloc](https://github.com/nim-lang/Nim/blob/96d6eee9bc33c22defb980fc0953c8e55f363ab2/lib/genode/alloc.nim#L18) - [std/assertions](https://github.com/nim-lang/Nim/blob/devel/lib/std/assertions.nim) in: - [ ] [iterators](https://github.com/nim-lang/Nim/blob/96d6eee9bc33c22defb980fc0953c8e55f363ab2/lib/system/iterators.nim#L4) - [std/exitprocs](https://github.com/nim-lang/Nim/blob/devel/lib/std/exitprocs.nim)...

The nif repo (https://github.com/nim-lang/nif) is now installed as a dependency for the Nim compiler. At the moment the important tools (nifler, xelim, nifgram, gear2) are imported to test that this...

### Description ```nim let a = new array[1000, byte] block: for _ in cast[typeof(a)](a)[]: discard block: let x = cast[typeof(a)](a) # not even var for _ in x[]: discard ```...

There were a couple remaining bugs after #24005, #24065 for proc parameters with implicit generic types: * A new check `containsUnresolvedType` was introduced that purposefully excluded typeclasses, but implicitly generic...

### Summary I want to use the filelock function in nim, but can't found it in nim standard library. ### Description No filelock function in nim. ### Alternatives _No response_...

Feature
Standard Library

### Description ```nim import std/macros macro evalOnceAs*(exp, alias: untyped): untyped = expectKind(alias, nnkIdent) let body = nnkStmtList.newTree() val = if exp.kind == nnkSym: # The symbol can be used directly...

Templates
Macros

### Description The following snippet results in a dangling pointer for the array access: ```nim type ArrayBuf = object buf: array[32, byte] n: int template data*(bParam: ArrayBuf): openArray = block:...

Code Generation
View Types