Skip to content

fix #25870 #25846: var return type in C++ backend - #26008

Open
nimamasl114514 wants to merge 5 commits into
nim-lang:develfrom
nimamasl114514:fix-25870-final
Open

fix #25870 #25846: var return type in C++ backend#26008
nimamasl114514 wants to merge 5 commits into
nim-lang:develfrom
nimamasl114514:fix-25870-final

fix C++ genProcLvl3: skip cDeref for tyVar of tyArray (ctPtrToArray p…

27b8e28
Select commit
Loading
Failed to load commit list.
Azure Pipelines / nim-lang.Nim failed Aug 5, 2026 in 1h 32m 18s

Build #20260805.6 had test failures

Details

Tests

  • Failed: 2 (0.02%)
  • Passed: 4,198 (32.64%)
  • Other: 8,661 (67.34%)
  • Total: 12,861

Annotations

Check failure on line 5531 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / nim-lang.Nim

Build log #L5531

Bash exited with code '1'.

Check failure on line 22579 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / nim-lang.Nim

Build log #L22579

Bash exited with code '1'.

Check failure on line 5468 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / nim-lang.Nim

Build log #L5468

Bash exited with code '1'.

Check failure on line 5716 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / nim-lang.Nim

Build log #L5716

Bash exited with code '1'.

Check failure on line 1 in tests/openarray/topenarray.nim cpp

See this annotation in the file changed.

@azure-pipelines azure-pipelines / nim-lang.Nim

tests/openarray/topenarray.nim cpp

Failure: reNimcCrash
$ /home/vsts/work/1/s/bin/nim cpp --hints:on -d:testing --nimblePath:build/deps/pkgs2   --nimCache:nimcache/tests/openarray/topenarray.nim_2c5f2cba9af7f92986d3de1e753f3faa  tests/openarray/topenarray.nim
Hint: used config file '/home/vsts/work/1/s/config/nim.cfg' [Conf]
Hint: used config file '/home/vsts/work/1/s/config/config.nims' [Conf]
Hint: used config file '/home/vsts/work/1/s/tests/config.nims' [Conf]
CC: system/exceptions.nim
CC: std/private/digitsutils.nim
CC: std/assertions.nim
CC: system/dollars.nim
CC: system.nim
CC: topenarray.nim
/home/vsts/work/1/s/nimcache/tests/openarray/topenarray.nim_2c5f2cba9af7f92986d3de1e753f3faa/@mtopenarray.nim.cpp: In function ‘void main_u0__topenarray()’:
/home/vsts/work/1/s/nimcache/tests/openarray/topenarray.nim_2c5f2cba9af7f92986d3de1e753f3faa/@mtopenarray.nim.cpp:703:86: error: lvalue required as unary ‘&’ operand
  703 |                         nimlf_(66, "topenarray.nim");NI* T47_ = (&task_u0__topenarray(d_2));
      |                                                                   ~~~~~~~~~~~~~~~~~~~^~~~~
Error: execution of an external compiler program 'g++ -c -std=gnu++17 -funsigned-char  -w -fmax-errors=3 -fpermissive -pthread   -I/home/vsts/work/1/s/lib -I/home/vsts/work/1/s/tests/openarray -o /home/vsts/work/1/s/nimcache/tests/openarray/topenarray.nim_2c5f2cba9af7f92986d3de1e753f3faa/@mtopenarray.nim.cpp.o /home/vsts/work/1/s/nimcache/tests/openarray/topenarray.nim_2c5f2cba9af7f92986d3de1e753f3faa/@mtopenarray.nim.cpp' failed with exit code: 1


Check failure on line 1 in tests/openarray/topenarray.nim cpp

See this annotation in the file changed.

@azure-pipelines azure-pipelines / nim-lang.Nim

tests/openarray/topenarray.nim cpp

Failure: reNimcCrash
$ D:\a\1\s\bin\nim.exe cpp --hints:on -d:testing --nimblePath:build/deps/pkgs2   --nimCache:nimcache\tests\openarray\topenarray.nim_2c5f2cba9af7f92986d3de1e753f3faa  tests\openarray\topenarray.nim
Hint: used config file 'D:\a\1\s\config\nim.cfg' [Conf]
Hint: used config file 'D:\a\1\s\config\config.nims' [Conf]
Hint: used config file 'D:\a\1\s\tests\config.nims' [Conf]
D:\a\1\s\nimcache\tests\openarray\topenarray.nim_2c5f2cba9af7f92986d3de1e753f3faa\@mtopenarray.nim.cpp: In function 'void main_u0__topenarray()':
D:\a\1\s\nimcache\tests\openarray\topenarray.nim_2c5f2cba9af7f92986d3de1e753f3faa\@mtopenarray.nim.cpp:706:86: error: lvalue required as unary '&' operand
  706 |                         nimlf_(66, "topenarray.nim");NI* T47_ = (&task_u0__topenarray(d_2));
      |                                                                   ~~~~~~~~~~~~~~~~~~~^~~~~
CC: system/exceptions.nim
CC: std/private/digitsutils.nim
CC: std/assertions.nim
CC: system/dollars.nim
CC: std/exitprocs.nim
CC: std/syncio.nim
CC: system.nim
CC: topenarray.nim
Error: execution of an external compiler program 'g++.exe -c -std=gnu++17 -funsigned-char  -w -fmax-errors=3 -fpermissive -mno-ms-bitfields   -ID:\a\1\s\lib -ID:\a\1\s\tests\openarray -o D:\a\1\s\nimcache\tests\openarray\topenarray.nim_2c5f2cba9af7f92986d3de1e753f3faa\@mtopenarray.nim.cpp.o D:\a\1\s\nimcache\tests\openarray\topenarray.nim_2c5f2cba9af7f92986d3de1e753f3faa\@mtopenarray.nim.cpp' failed with exit code: 1