Subject: CVS commit: pkgsrc/lang/nim
From: Ryo ONODERA
Date: 2020-12-07 13:40:44
Message id: 20201207124044.425C1FA9D@cvs.NetBSD.org

Log Message:
nim: Update to 1.4.2

Changelog:
Bugfixes

  * Fixed "dbQuote additional escape regression" (#15560)
  * Fixed "[ARC] Finalizer with a do notation proc crashes the compiler" (#
    15599)
  * Fixed "./koch drnim: git checkout ... fails (invalid git hash)" \ 
(#15639)
  * Fixed "Testament does not check memory leaks with Valgrind" (#15631)
  * Fixed "Templates can't be made discardable" (#13609)
  * Fixed "Taking a view of var openArray[T] generates broken C" (#15652)
  * Fixed "Regression: parsecsv from newGZFileStream" (#12410)
  * Fixed "NimVM generic procs that take anonymous tuples gives nil access
    error." (#15662)
  * Fixed "net.$ is not printing a zero group smaller than the compressed
    group" (#15698)
  * Fixed "map, mapIt, filter cause a segfault at compile time in a static
    block when passed an inline function" (#15363)
  * Fixed "const Table losing object variant data at runtime" (#8007)
  * Fixed "regression(1.0.2 => 1.0.4) VM register messed up depending on
    unrelated context" (#15704)
  * Fixed "VM: nil procvar treated as not nil in VM, causing FieldDefect and
    further errors" (#15595)
  * Fixed "ICE with sequtils + algorithm (mapIt, sortedByIt) + json " \ 
(#10456
    )
  * Fixed "Size of packed enum of byte is 2 byte; if highest value is 0xFF but
    should be 1" (#15752)
  * Fixed "OrderedTable.== throws error on empty table: unhandled exception:
    index out of bounds..." (#15750)
  * Fixed "strictFunc: system & is considered to have side effects under arc
    mode" (#15756)
  * Fixed "JSON parsing fails for integer values greater than BiggestInt.max
    " (#15413)
  * Fixed "yet another cmpIgnoreStyle bug" (#7686)
  * Fixed "1 mod 0 gives NaN with JS backend" (#7127)
  * Fixed "Discarding a dom.Node raises a javascript error" (#15638)
  * Fixed "Regression: overriding streams.write(T) does not work on 0.19
    anymore" (#9091)
  * Fixed "Converter is applied to the first parameter of operator instead of
    last" (#9165)
  * Fixed "Recursion using concepts crashes compiler" (#8012)
  * Fixed "Union types in javascript" (#7658)
  * Fixed "Ambiguous call error when it's not" (#7416)
  * Fixed "Codegen does not like shadowed parameter" (#7374)
  * Fixed "incomplete code generation when using a compile time variable at
    run time (undeclared identifier)" (#6036)
  * Fixed "Compiler doesn't warn when using {.global.} and {.threadvar.} on
    JS backend despite it not working" (#11625)
  * Fixed "Discarding output with nested for/if statements" (#14227)
  * Fixed "regression: docgen drops enum doc comments" (#15702)
  * Fixed "regression(1.0): codegen error with locals" (#12682)
  * Fixed "[JS] $ on an enum in an if expression causes bad codegen" \ 
(#15651)
  * Fixed "Error upon conditional declaration inside a template" (#3670)
  * Fixed "Compiler crash when a value in enum is converted to the enum itself
    " (#15145)
  * Fixed "[AssertionDefect] json.to(type) on object with Option[ref object]
    field" (#15815)
  * Fixed "Crash with const tuple unpacking" (#15717)
  * Fixed "JS codegen can produce extreme switch statements with case a of
    range" (#8821)
  * Fixed "cannot capture result, produces unhelpful eror" (#15594)
  * Fixed "Code that work in 1.2.6, but not 1.4.0" (#15804)
  * Fixed "C-backend link failure for let with {.global, compileTime.} pragma
    " (#12640)
  * Fixed "json.to crashes (SIGSEGV) when object attribute is a JsonNode and
    the key is not there" (#15835)
  * Fixed "Cannot use custom pragmas in ref object" (#8457)
  * Fixed "GC_ref on empty string fails with [GCASSERT] incRef: \ 
interiorPtr"
    (#10307)
  * Fixed "VM segmentation faults with swap" (#15463)
  * Fixed "$(s: WideCString) changes result to repr on -gc:arc" (#15663)
  * Fixed "unittest.check rejects with a type error, code that Nim otherwise
    accepts" (#15618)
  * Fixed "Type mismatch on init of static[T] object with T being a static[U]
    " (#11142)
  * Fixed "sizeof array with static N crash in type section" (#12636)
  * Fixed "-gc:arc segfaults when returning result from a proc" (#15609)
  * Fixed "Error: 'newHttpHeaders' can have side effects" (#15851)
  * Fixed "template that overloads [] accessor does not compile" (#8829)
  * Fixed "Simple type definition crash" (#12897)
  * Fixed "mapIt from sequtils not working in {.push compile_time.} \ 
context"
    (#12558)
  * Fixed "-gc:arc/orc Error: unhandled exception: 'sym' is not accessible
    using discriminant 'kind' of type 'TNode' [FieldDefect]" (#15707)
  * Fixed "incorrect type inference with static: Error: ordinal type expected
    " (#15858)
  * Fixed "constructor causes SIGBUS if a destroy is defined" (#14601)
  * Fixed "internal error: getTypeDescAux(tyOr) on sink UnionType \ 
argument" (
    #15825)
  * Fixed "Console apps in Windows can rise OSError" (#15874)
  * Fixed "nim doc cannot grok IOSelectorsException" (#12471)
  * Fixed "Method dispatch silently breaks on non-ref objects" (#4318)
  * Fixed "Cannot take the compile-time sizeof Atomic types" (#12726)
  * Fixed "Setting subscript index of cstring is allowed and generates bad
    code" (#14157)
  * Fixed "Compiler crash using if as an expression with a noreturn \ 
branch" (
    #15909)
  * Fixed "docgen fatal: result[0].kind == nkSym [AssertionDefect]" \ 
(#15916)
  * Fixed "Iterator for sharedlist won't iterate all items." (#15941)
  * Fixed "Embedded templates with iterators fails to compile" (#2771)
  * Fixed "C++ Atomics in union: ::::::field with constructor not allowed in
    anonymous aggregate" ([#13062](https://github.com/nim-lang/Nim/issues/
    13062))
  * Fixed "memory corruption in tmarshall.nim" (#9754)
  * Fixed "JS backend doesn't handle float->int type conversion " \ 
(#8404)
  * Fixed "The "try except" not work when the "OSError: Too \ 
many open files
    " error occurs!" (#15925)
  * Fixed "lent gives wrong results with -d:release" (#14578)
  * Fixed "backticks : Using reserved keywords as identifiers is not
    documented" (#15806)
  * Fixed "backticks : Using reserved keywords as identifiers is not
    documented" (#15806)
  * Fixed "backticks : Using reserved keywords as identifiers is not
    documented" (#15806)
  * Fixed "backticks : Using reserved keywords as identifiers is not
    documented" (#15806)
  * Fixed "Program SIGSEGV when using '-gc:orc'" (#15753)
  * Fixed "Assignment to Option[T] doesn't call destructor on existing
    contained value" (#15910)
  * Fixed "In for loop _ is accessible" (#15972)
  * Fixed "Pragma codegenDecl doesn't work inside iterators" (#6497)
  * Fixed "nim js --gc:arc gives bad error: undeclared identifier: '+!'" (#
    16033)
  * Fixed "create a new function definitions got Internal error: environment
    misses:" (#14847)
  * Fixed "Nim emits #line 0 C preprocessor directives with -debugger:native,
    with ICE in gcc-10" (#15942)
  * Fixed "Serializing and deserializing a proc SIGSEV's" (#16022)
  * Fixed "Small tutorial error" (#16047)
  * Fixed "lent codegen error for c++ (works with c,js,vm)" (#15958)
  * Fixed "sink var/var sink both accepted; sink var leads to bad codegen and
    strange behavior" (#15671)
  * Fixed "tfuturevar fails when activated" (#9695)
  * Fixed "db_sqlite: Error: undeclared field: 'untypedLen'" (#16080)
  * Fixed "xmlparser removes significant white space" (#14056)
  * Fixed "nre.escapeRe is not gcsafe" (#16103)
  * Fixed "macros.getImpl still return incorrect AST for Sym \ 
"XXX:ObjectType
    "" (#16110)
  * Fixed ""Error: internal error: genRecordFieldAux" - in the \ 
"version-1-4
    " branch" (#16069)
  * Fixed "Tracking memory leaks under ORC (mostly with async)" (#15076)
  * Fixed "Const seq into sink arg: =copy operator not found" (#16120)
  * Fixed "Copying of a sink parameter into a variable not allowed" \ 
(#16119)
  * Fixed "Memleak in AsyncHttpServer with arc/orc" (#16154)

Files:
RevisionActionfile
1.19modifypkgsrc/lang/nim/Makefile
1.15modifypkgsrc/lang/nim/distinfo