juancarlospaco / nimrun-action-minefield

Minefield
1 stars 0 forks source link

TESTING #1

Closed juancarlospaco closed 12 months ago

juancarlospaco commented 1 year ago

TESTING

juancarlospaco commented 1 year ago

@github-actions nim c

doAssert NimMinor != 9, "Simulate Bug"
juancarlospaco commented 1 year ago

@github-actions nim c

doAssert NimMinor != 9, "Simulate Bug"
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :red_square:

Output

Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp
/home/runner/.choosenim/toolchains/nim-#devel/lib/std/assertions.nim failedAssertImpl
/home/runner/.choosenim/toolchains/nim-#devel/lib/std/assertions.nim raiseAssert
/home/runner/.choosenim/toolchains/nim-#devel/lib/system/fatal.nim sysFatal
Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 1) `NimMinor != 9` Simulate Bug [AssertionDefect]
Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp'

stable :white_check_mark:

Output

``` ```

Stats

  • Created 2023-07-01T19:07:22Z
  • Started 2023-07-01T19:07:50
  • Finished 2023-07-01T19:07:51
  • Duration 1 minute
  • Filesize 78.21 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("!="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__systemZassertions_56)(NimStringDesc* msg); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_2997)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_2, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor != 9` Simulate Bug", 110); extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__system_2564 == ((TFrame*) NIM_NIL))) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__system_2564).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__system_2564; framePtr__system_2564 = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; callDepthLimitReached__system_2997(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_2564 = (*framePtr__system_2564).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000(); initStackBottomWith((void *)&inner); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); { if (!NIM_FALSE) goto LA3_; failedAssertImpl__systemZassertions_56(((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_2)); } LA3_: ; popFrame(); } } ```
1.6.0 :white_check_mark:

Output

``` ```

Stats

  • Created 2023-07-01T19:07:22Z
  • Started 2023-07-01T19:07:53
  • Finished 2023-07-01T19:07:54
  • Duration 1 minute
  • Filesize 78.21 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("!="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl_systemZassertions_56)(NimStringDesc* msg); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached_system_2997)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_2, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor != 9` Simulate Bug", 110); extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr_system_2564 == ((TFrame*) NIM_NIL))) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr_system_2564).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr_system_2564; framePtr_system_2564 = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; callDepthLimitReached_system_2997(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr_system_2564 = (*framePtr_system_2564).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); { if (!NIM_FALSE) goto LA3_; failedAssertImpl_systemZassertions_56(((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_2)); } LA3_: ; popFrame(); } } ```
1.4.0 :white_check_mark:

Output

``` ```

Stats

  • Created 2023-07-01T19:07:22Z
  • Started 2023-07-01T19:07:57
  • Finished 2023-07-01T19:07:57
  • Duration 1 minute
  • Filesize 74.21 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("!="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_2, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor != 9` Simulate Bug", 110); extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); { if (!NIM_FALSE) goto LA3_; failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_2)); } LA3_: ; popFrame(); } } ```
1.2.0 :white_check_mark:

Output

``` ```

Stats

  • Created 2023-07-01T19:07:22Z
  • Started 2023-07-01T19:08:13
  • Finished 2023-07-01T19:08:14
  • Duration now
  • Filesize 91.41 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("!="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_2, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor != 9` Simulate Bug", 110); extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); { if (!!(!((((NI) 2) == ((NI) 9))))) goto LA3_; failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_2)); } LA3_: ; popFrame(); } } ```
1.0.0 :white_check_mark:

Output

``` ```

Stats

  • Created 2023-07-01T19:07:22Z
  • Started 2023-07-01T19:08:26
  • Finished 2023-07-01T19:08:27
  • Duration 1 minute
  • Filesize 86.41 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("!="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_2, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim(1, 10) `NimMinor != 9` Simulate Bug", 110); extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); { if (!!(!((((NI) 2) == ((NI) 9))))) goto LA3_; failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_2)); } LA3_: ; popFrame(); } } ```
#d83f66a24 :arrow_right: :bug:

Diagnostics

ringabout introduced a bug at 2022-12-17 16:10:56 +0800 on commit [#d83f66a24](https://github.com/nim-lang/Nim/commit/d83f66a24) with message: ``` fixes #21116; always mangles the param (#21121) * fixes #21116; always mangles the param * idOrSig * fixes tests * Apply suggestions from code review ``` The bug is in the files: ``` compiler/ccgtypes.nim tests/ccgbugs/t21116.nim tests/ccgbugs/tnoalias.nim ```

Commits near

Diagnostics sometimes off-by-one.
  • [#d83f66a24](https://github.com/nim-lang/Nim/commit/d83f66a24)
  • [#7fa983f5e](https://github.com/nim-lang/Nim/commit/7fa983f5e)
  • [#296e7f598](https://github.com/nim-lang/Nim/commit/296e7f598)
  • [#84200f28a](https://github.com/nim-lang/Nim/commit/84200f28a)
  • [#a9bd78d57](https://github.com/nim-lang/Nim/commit/a9bd78d57)
  • [#8a3b76b28](https://github.com/nim-lang/Nim/commit/8a3b76b28)
:robot: Bug found in 54 minutes bisecting 1559 commits at 29 commits per second.
juancarlospaco commented 1 year ago

@github-actions nim c

doAssert NimMinor != 9, "Simulate Bug"
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :-1: FAIL

Output

Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp
/home/runner/.choosenim/toolchains/nim-#devel/lib/std/assertions.nim failedAssertImpl
/home/runner/.choosenim/toolchains/nim-#devel/lib/std/assertions.nim raiseAssert
/home/runner/.choosenim/toolchains/nim-#devel/lib/system/fatal.nim sysFatal
Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 1) `NimMinor != 9` Simulate Bug [AssertionDefect]
Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp'

stable :+1: OK

Output

``` ```

Stats

  • Created 2023-07-01T21:20:45Z
  • Started 2023-07-01T21:21:18
  • Finished 2023-07-01T21:21:19
  • Duration 1 minute
  • Filesize 78.21 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("!="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__systemZassertions_56)(NimStringDesc* msg); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_2997)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_2, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor != 9` Simulate Bug", 110); extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__system_2564 == ((TFrame*) NIM_NIL))) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__system_2564).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__system_2564; framePtr__system_2564 = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; callDepthLimitReached__system_2997(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_2564 = (*framePtr__system_2564).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000(); initStackBottomWith((void *)&inner); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); { if (!NIM_FALSE) goto LA3_; failedAssertImpl__systemZassertions_56(((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_2)); } LA3_: ; popFrame(); } } ```
1.6.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-01T21:20:45Z
  • Started 2023-07-01T21:21:21
  • Finished 2023-07-01T21:21:22
  • Duration 1 minute
  • Filesize 78.21 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("!="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.4.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-01T21:20:45Z
  • Started 2023-07-01T21:21:26
  • Finished 2023-07-01T21:21:26
  • Duration 1 minute
  • Filesize 74.21 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("!="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.2.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-01T21:20:45Z
  • Started 2023-07-01T21:21:43
  • Finished 2023-07-01T21:21:43
  • Duration now
  • Filesize 91.41 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("!="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
1.0.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-01T21:20:45Z
  • Started 2023-07-01T21:21:54
  • Finished 2023-07-01T21:21:54
  • Duration now
  • Filesize 86.41 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("!="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```
#d83f66a24 :arrow_right: :bug:

Diagnostics

ringabout introduced a bug at 2022-12-17 16:10:56 +0800 on commit #d83f66a24 with message: ``` fixes #21116; always mangles the param (#21121) * fixes #21116; always mangles the param * idOrSig * fixes tests * Apply suggestions from code review ``` The bug is in the files: ``` compiler/ccgtypes.nim tests/ccgbugs/t21116.nim tests/ccgbugs/tnoalias.nim ``` The bug can be in the commits:

:robot: Bug found in 31 minutes bisecting 1559 commits at 50 commits per second.

juancarlospaco commented 1 year ago

@github-actions nim c

doAssert NimMinor != 9, "Simulate Bug"
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :-1: FAIL

Output

Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp
/home/runner/.choosenim/toolchains/nim-#devel/lib/std/assertions.nim failedAssertImpl
/home/runner/.choosenim/toolchains/nim-#devel/lib/std/assertions.nim raiseAssert
/home/runner/.choosenim/toolchains/nim-#devel/lib/system/fatal.nim sysFatal
Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 1) `NimMinor != 9` Simulate Bug [AssertionDefect]
Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp'

stable :+1: OK

Output

``` ```

Stats

  • Created 2023-07-01T22:23:44Z
  • Started 2023-07-01T22:24:13
  • Finished 2023-07-01T22:24:14
  • Duration 1 minute
  • Filesize 78.21 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("!="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__systemZassertions_56)(NimStringDesc* msg); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_2997)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_2, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor != 9` Simulate Bug", 110); extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__system_2564 == ((TFrame*) NIM_NIL))) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__system_2564).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__system_2564; framePtr__system_2564 = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; callDepthLimitReached__system_2997(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_2564 = (*framePtr__system_2564).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000(); initStackBottomWith((void *)&inner); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); { if (!NIM_FALSE) goto LA3_; failedAssertImpl__systemZassertions_56(((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_2)); } LA3_: ; popFrame(); } } ```
1.6.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-01T22:23:44Z
  • Started 2023-07-01T22:24:16
  • Finished 2023-07-01T22:24:17
  • Duration 1 minute
  • Filesize 78.21 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.4.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-01T22:23:44Z
  • Started 2023-07-01T22:24:20
  • Finished 2023-07-01T22:24:20
  • Duration 1 minute
  • Filesize 74.21 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.2.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-01T22:23:44Z
  • Started 2023-07-01T22:24:36
  • Finished 2023-07-01T22:24:36
  • Duration now
  • Filesize 91.41 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-01T22:23:44Z
  • Started 2023-07-01T22:24:49
  • Finished 2023-07-01T22:24:50
  • Duration 1 minute
  • Filesize 86.41 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
#d83f66a24 :arrow_right: :bug:

Diagnostics

ringabout introduced a bug at 2022-12-17 16:10:56 +0800 on commit #d83f66a24 with message: ``` fixes #21116; always mangles the param (#21121) * fixes #21116; always mangles the param * idOrSig * fixes tests * Apply suggestions from code review ``` The bug is in the files: ``` compiler/ccgtypes.nim tests/ccgbugs/t21116.nim tests/ccgbugs/tnoalias.nim ``` The bug can be in the commits: (Diagnostics sometimes off-by-one).

:robot: Bug found in 39 minutes bisecting 1559 commits at 40 commits per second.

juancarlospaco commented 1 year ago

@github-actions nim c

doAssert NimMinor != 9, "Simulate Bug"
juancarlospaco commented 1 year ago

@github-actions nim c

doAssert NimMinor != 9, "Simulate Bug"
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :-1: FAIL

Output

Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp
/home/runner/.choosenim/toolchains/nim-#devel/lib/std/assertions.nim failedAssertImpl
/home/runner/.choosenim/toolchains/nim-#devel/lib/std/assertions.nim raiseAssert
/home/runner/.choosenim/toolchains/nim-#devel/lib/system/fatal.nim sysFatal
Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 1) `NimMinor != 9` Simulate Bug [AssertionDefect]
Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp'

stable :+1: OK

Output

``` ```

Stats

  • Created 2023-07-02T01:07:57Z
  • Started 2023-07-02T01:08:26
  • Finished 2023-07-02T01:08:27
  • Duration 1 minute
  • Filesize 78.21 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("doAssert"), nnkInfix.newTree( newIdentNode("!="), newIdentNode("NimMinor"), newLit(9) ), newLit("Simulate Bug") ) ) ```

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__systemZassertions_56)(NimStringDesc* msg); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_2997)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_2, "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor != 9` Simulate Bug", 110); extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__system_2564 == ((TFrame*) NIM_NIL))) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__system_2564).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__system_2564; framePtr__system_2564 = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; callDepthLimitReached__system_2997(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_2564 = (*framePtr__system_2564).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000(); initStackBottomWith((void *)&inner); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); { if (!NIM_FALSE) goto LA3_; failedAssertImpl__systemZassertions_56(((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_2)); } LA3_: ; popFrame(); } } ```
1.6.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-02T01:07:57Z
  • Started 2023-07-02T01:08:30
  • Finished 2023-07-02T01:08:30
  • Duration 1 minute
  • Filesize 78.21 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.4.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-02T01:07:57Z
  • Started 2023-07-02T01:08:34
  • Finished 2023-07-02T01:08:34
  • Duration 1 minute
  • Filesize 74.21 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.2.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-02T01:07:57Z
  • Started 2023-07-02T01:08:51
  • Finished 2023-07-02T01:08:51
  • Duration now
  • Filesize 91.41 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-02T01:07:57Z
  • Started 2023-07-02T01:09:01
  • Finished 2023-07-02T01:09:02
  • Duration 1 minute
  • Filesize 86.41 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
#d83f66a24 :arrow_right: :bug:

Diagnostics

ringabout introduced a bug at 2022-12-17 16:10:56 +0800 on commit #d83f66a24 with message: ``` fixes #21116; always mangles the param (#21121) * fixes #21116; always mangles the param * idOrSig * fixes tests * Apply suggestions from code review ``` The bug is in the files: ``` compiler/ccgtypes.nim tests/ccgbugs/t21116.nim tests/ccgbugs/tnoalias.nim ``` The bug can be in the commits: (Diagnostics sometimes off-by-one).

:robot: Bug found in 26 minutes bisecting 1559 commits at 61 commits per second.

juancarlospaco commented 1 year ago

@github-actions nim c

doAssert NimMinor < 6, "Simulate Bug"
juancarlospaco commented 1 year ago

@github-actions nim c

doAssert NimMinor < 6, "Simulate Bug"
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :-1: FAIL

Output

Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp
/home/runner/.choosenim/toolchains/nim-#devel/lib/std/assertions.nim failedAssertImpl
/home/runner/.choosenim/toolchains/nim-#devel/lib/std/assertions.nim raiseAssert
/home/runner/.choosenim/toolchains/nim-#devel/lib/system/fatal.nim sysFatal
Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 1) `NimMinor < 6` Simulate Bug [AssertionDefect]
Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp'

stable :-1: FAIL

Output

``` Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor < 6` Simulate Bug [AssertionDefect] Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ' ```
1.6.0 :-1: FAIL

Output

``` Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor < 6` Simulate Bug [AssertionDefect] Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ' ```
1.4.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-02T02:36:30Z
  • Started 2023-07-02T02:37:14
  • Finished 2023-07-02T02:37:14
  • Duration 1 minute
  • Filesize 74.21 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.2.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-02T02:36:30Z
  • Started 2023-07-02T02:37:29
  • Finished 2023-07-02T02:37:30
  • Duration now
  • Filesize 91.41 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-02T02:36:30Z
  • Started 2023-07-02T02:37:41
  • Finished 2023-07-02T02:37:41
  • Duration 1 minute
  • Filesize 86.41 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
juancarlospaco commented 1 year ago

@github-actions nim c

doAssert NimMinor < 6, "Simulate Bug"
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :-1: FAIL

Output

Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp
/home/runner/.choosenim/toolchains/nim-#devel/lib/std/assertions.nim failedAssertImpl
/home/runner/.choosenim/toolchains/nim-#devel/lib/std/assertions.nim raiseAssert
/home/runner/.choosenim/toolchains/nim-#devel/lib/system/fatal.nim sysFatal
Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 1) `NimMinor < 6` Simulate Bug [AssertionDefect]
Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp'

stable :-1: FAIL

Output

``` Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor < 6` Simulate Bug [AssertionDefect] Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ' ```
1.6.0 :-1: FAIL

Output

``` Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor < 6` Simulate Bug [AssertionDefect] Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ' ```
1.4.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-02T13:58:21Z
  • Started 2023-07-02T13:59:01
  • Finished 2023-07-02T13:59:01
  • Duration 1 minute
  • Filesize 74.21 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.2.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-02T13:58:21Z
  • Started 2023-07-02T13:59:16
  • Finished 2023-07-02T13:59:16
  • Duration now
  • Filesize 91.41 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-02T13:58:21Z
  • Started 2023-07-02T13:59:28
  • Finished 2023-07-02T13:59:28
  • Duration now
  • Filesize 86.41 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
??? :arrow_right: :bug:

Diagnostics

The commit that introduced the bug can not be found, but the bug is in the commits: (Diagnostics can not find the commit because Nim can not be re-built commit-by-commit to bisect).

:robot: Bug found in 6 minutes bisecting 3385 commits at 561 commits per second.

juancarlospaco commented 1 year ago

@github-actions nim c

doAssert NimMinor < 6, "Simulate Bug"
github-actions[bot] commented 1 year ago

@juancarlospaco (owner)

devel :-1: FAIL

Output

Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp
/home/runner/.choosenim/toolchains/nim-#devel/lib/std/assertions.nim failedAssertImpl
/home/runner/.choosenim/toolchains/nim-#devel/lib/std/assertions.nim raiseAssert
/home/runner/.choosenim/toolchains/nim-#devel/lib/system/fatal.nim sysFatal
Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 1) `NimMinor < 6` Simulate Bug [AssertionDefect]
Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp'

stable :-1: FAIL

Output

``` Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor < 6` Simulate Bug [AssertionDefect] Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ' ```
1.6.0 :-1: FAIL

Output

``` Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor < 6` Simulate Bug [AssertionDefect] Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ' ```
1.4.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-02T14:30:20Z
  • Started 2023-07-02T14:30:59
  • Finished 2023-07-02T14:30:59
  • Duration 1 minute
  • Filesize 74.21 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.2.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-02T14:30:20Z
  • Started 2023-07-02T14:31:14
  • Finished 2023-07-02T14:31:14
  • Duration 1 minute
  • Filesize 91.41 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-02T14:30:20Z
  • Started 2023-07-02T14:31:25
  • Finished 2023-07-02T14:31:25
  • Duration 1 minute
  • Filesize 86.41 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
??? :arrow_right: :bug:

Diagnostics

The commit that introduced the bug can not be found, but the bug is in the commits: (Can not find the commit because Nim can not be re-built commit-by-commit to bisect).

:robot: Bug found in bisecting 3385 commits at 57 commits per second.

juancarlospaco commented 1 year ago

@github-actions nim c

import tables
var tested:Table[string,int]

template `[]`[V](t:Table[string,V],key:string):V =
  echo V
  tables.`[]`(t,key)
discard tested["three"]
juancarlospaco commented 12 months ago

@github-actions nim c

doAssert NimMinor < 6, "Simulate Bug"
github-actions[bot] commented 12 months ago

@juancarlospaco (owner)

devel :-1: FAIL

Output

Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp
/home/runner/.choosenim/toolchains/nim-#devel/lib/std/assertions.nim failedAssertImpl
/home/runner/.choosenim/toolchains/nim-#devel/lib/std/assertions.nim raiseAssert
/home/runner/.choosenim/toolchains/nim-#devel/lib/system/fatal.nim sysFatal
Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 1) `NimMinor < 6` Simulate Bug [AssertionDefect]
Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp'

stable :-1: FAIL

Output

``` Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.6.14/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor < 6` Simulate Bug [AssertionDefect] Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ' ```
1.6.0 :-1: FAIL

Output

``` Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim failedAssertImpl /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/assertions.nim raiseAssert /home/runner/.choosenim/toolchains/nim-1.6.0/lib/system/fatal.nim sysFatal Error: unhandled exception: /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 10) `NimMinor < 6` Simulate Bug [AssertionDefect] Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp ' ```
1.4.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-03T01:19:34Z
  • Started 2023-07-03T01:20:11
  • Finished 2023-07-03T01:20:12
  • Duration 1 minute
  • Filesize 74.21 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.2.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-03T01:19:34Z
  • Started 2023-07-03T01:20:26
  • Finished 2023-07-03T01:20:26
  • Duration now
  • Filesize 91.41 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-03T01:19:34Z
  • Started 2023-07-03T01:20:39
  • Finished 2023-07-03T01:20:39
  • Duration now
  • Filesize 86.41 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
??? :arrow_right: :bug:

Diagnostics

The commit that introduced the bug can not be found, but the bug is in the commits: (Can not find the commit because Nim can not be re-built commit-by-commit to bisect).

:robot: Bug found in 13 minutes bisecting 3385 commits at 265 commits per second.

juancarlospaco commented 12 months ago

@github-actions nim c

echo type {3, 3000}
github-actions[bot] commented 12 months ago

@juancarlospaco (owner)

devel :-1: FAIL

Output

Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(1, 15) Error: cannot convert 3000 to range 0..255(int)

stable :+1: OK

Output

``` set[range 0..65535(int)] ```

Stats

  • Created 2023-07-03T14:39:02Z
  • Started 2023-07-03T14:39:38
  • Finished 2023-07-03T14:39:39
  • Duration 1 minute
  • Filesize 78.29 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("echo"), nnkCommand.newTree( newIdentNode("type"), nnkCurly.newTree( newLit(3), newLit(3000) ) ) ) ) ```

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; typedef struct NimStringDesc NimStringDesc; typedef struct TGenericSeq TGenericSeq; struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc { TGenericSeq Sup; NIM_CHAR data[SEQ_DECL_SIZE]; }; typedef NimStringDesc* tyArray__nHXaesL0DJZHyVS07ARPRA[1]; N_LIB_PRIVATE N_NIMCALL(void, echoBinSafe)(NimStringDesc** args, NI argsLen_0); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_2997)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_3, "set[range 0..65535(int)]", 24); static NIM_CONST tyArray__nHXaesL0DJZHyVS07ARPRA TM__h69aKLv9bAieBdiFzvDngbMw_2 = {((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_3)} ; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__system_2564 == ((TFrame*) NIM_NIL))) goto LA3_; (*s).calldepth = ((NI16) 0); } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__system_2564).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__system_2564; framePtr__system_2564 = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; callDepthLimitReached__system_2997(); } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_2564 = (*framePtr__system_2564).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000(); initStackBottomWith((void *)&inner); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); echoBinSafe(TM__h69aKLv9bAieBdiFzvDngbMw_2, 1); popFrame(); } } ```
1.6.0 :+1: OK

Output

``` set[range 0..65535(int)] ```

Stats

  • Created 2023-07-03T14:39:02Z
  • Started 2023-07-03T14:39:43
  • Finished 2023-07-03T14:39:44
  • Duration 1 minute
  • Filesize 78.29 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.4.0 :+1: OK

Output

``` set[range 0..65535(int)] ```

Stats

  • Created 2023-07-03T14:39:02Z
  • Started 2023-07-03T14:39:48
  • Finished 2023-07-03T14:39:48
  • Duration 1 minute
  • Filesize 74.29 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.2.0 :+1: OK

Output

``` set[range 0..65535(int)] ```

Stats

  • Created 2023-07-03T14:39:02Z
  • Started 2023-07-03T14:40:03
  • Finished 2023-07-03T14:40:03
  • Duration 1 minute
  • Filesize 91.86 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :+1: OK

Output

``` set[range 0..65535(int)] ```

Stats

  • Created 2023-07-03T14:39:02Z
  • Started 2023-07-03T14:40:15
  • Finished 2023-07-03T14:40:16
  • Duration 1 minute
  • Filesize 86.98 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
#b0a98cc01 :arrow_right: :bug:

Diagnostics

metagn introduced a bug at 2023-04-17 21:55:22 +0300 on commit #b0a98cc01 with message: ``` warn on set types bigger than max size, default to 0..255 for int literals (#21659) * test implicitly huge set types refs https://github.com/nim-lang/RFCs/issues/298 * oh my god * boot at least * don't error, fix remaining issues, no 2 len arrays * fix runnable example * test assuming 0..255 for int literal * test refactor, add changelog, test ``` The bug is in the files: ``` changelogs/changelog_2_0_0.md compiler/ccgstmts.nim compiler/commands.nim compiler/lineinfos.nim compiler/lowerings.nim compiler/nversion.nim compiler/semexprs.nim compiler/semtypes.nim compiler/suggest.nim compiler/vmgen.nim doc/sets_fragment.txt lib/pure/httpcore.nim lib/std/sysrand.nim lib/system/setops.nim tests/sets/thugeset.nim ``` The bug can be in the commits: (Diagnostics sometimes off-by-one).

:robot: Bug found in 53 minutes bisecting 1564 commits at 29 commits per second.

juancarlospaco commented 12 months ago

@github-actions nim c

type EVMFork = enum Berlin, Istanbul, Shanghai
const Vm2OpAllForks = {EVMFork.low .. EVMFork.high}
const vm2OpExecBlockData = [(forks: Vm2OpAllForks)]
proc mkOpTable(selected: EVMFork): bool =
  selected notin vm2OpExecBlockData[0].forks
const tab = mkOpTable(Berlin)
github-actions[bot] commented 12 months ago

@juancarlospaco (owner)

devel :+1: OK

Output

Stats

  • Created 2023-07-03T19:45:13Z
  • Started 2023-07-03T19:45:49
  • Finished 2023-07-03T19:45:50
  • Duration 1 minute
  • Filesize 70.41 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("EVMFork"), newEmptyNode(), nnkEnumTy.newTree( newEmptyNode(), newIdentNode("Berlin"), newIdentNode("Istanbul"), newIdentNode("Shanghai") ) ) ), nnkConstSection.newTree( nnkConstDef.newTree( newIdentNode("Vm2OpAllForks"), newEmptyNode(), nnkCurly.newTree( nnkInfix.newTree( newIdentNode(".."), nnkDotExpr.newTree( newIdentNode("EVMFork"), newIdentNode("low") ), nnkDotExpr.newTree( newIdentNode("EVMFork"), newIdentNode("high") ) ) ) ) ), nnkConstSection.newTree( nnkConstDef.newTree( newIdentNode("vm2OpExecBlockData"), newEmptyNode(), nnkBracket.newTree( nnkTupleConstr.newTree( nnkExprColonExpr.newTree( newIdentNode("forks"), newIdentNode("Vm2OpAllForks") ) ) ) ) ), nnkProcDef.newTree( newIdentNode("mkOpTable"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("bool"), nnkIdentDefs.newTree( newIdentNode("selected"), newIdentNode("EVMFork"), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkInfix.newTree( newIdentNode("notin"), newIdentNode("selected"), nnkDotExpr.newTree( nnkBracketExpr.newTree( newIdentNode("vm2OpExecBlockData"), newLit(0) ), newIdentNode("forks") ) ) ) ), nnkConstSection.newTree( nnkConstDef.newTree( newIdentNode("tab"), newEmptyNode(), nnkCall.newTree( newIdentNode("mkOpTable"), newIdentNode("Berlin") ) ) ) ) ```

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix N_LIB_PRIVATE N_NIMCALL(void, nimTestErrorFlag)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { #if 0 void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); (*inner)(); #else atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); PreMainInner(); #endif } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { #if 0 void (*volatile inner)(void); PreMain(); inner = NimMainInner; (*inner)(); #else PreMain(); NimMainInner(); #endif } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimTestErrorFlag(); } } ```
stable :-1: FAIL

Output

Error: Command failed: nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
fatal.nim(54)            sysFatal
Error: unhandled exception: nimsets.nim(16, 10) `s.kind == nkCurly`  [AssertionDefect]

1.6.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-03T19:45:13Z
  • Started 2023-07-03T19:45:54
  • Finished 2023-07-03T19:45:55
  • Duration 1 minute
  • Filesize 78.21 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.4.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-03T19:45:13Z
  • Started 2023-07-03T19:45:57
  • Finished 2023-07-03T19:45:58
  • Duration 1 minute
  • Filesize 74.21 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.2.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-03T19:45:13Z
  • Started 2023-07-03T19:46:13
  • Finished 2023-07-03T19:46:13
  • Duration 1 minute
  • Filesize 86.88 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :+1: OK

Output

``` ```

Stats

  • Created 2023-07-03T19:45:13Z
  • Started 2023-07-03T19:46:24
  • Finished 2023-07-03T19:46:25
  • Duration 1 minute
  • Filesize 81.94 Kb
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
#7ad8c44e2 :arrow_right: :bug:

Diagnostics

ringabout introduced a bug at 2023-02-01 02:22:10 +0800 on commit #7ad8c44e2 with message: ``` fixes #16790; fixes #19075; put big arrays on the constant seqs; don't inline them in the VM; big performance boost (#21318) * don't inline arrays in VM * add a test for #19075 (cherry picked from commit b5f64f55d02a8ba980244596dcf310dd76b48fd8) ``` The bug is in the files: ``` compiler/vmgen.nim tests/vm/t19075.nim ``` The bug can be in the commits: (Diagnostics sometimes off-by-one).

:robot: Bug found in 27 minutes bisecting 460 commits at 17 commits per second.

juancarlospaco commented 12 months ago

@github-actions nim cpp

type Base* = ref object of RootObj
method printSpace(c: var Base): void = discard
type Derived = ref object of Base
method printSpace(c: var Derived) = discard
juancarlospaco commented 12 months ago

@github-actions nim cpp

type Base* = ref object of RootObj
method printSpace(c: var Base): void = discard
type Derived = ref object of Base
method printSpace(c: var Derived) = discard
juancarlospaco commented 12 months ago

@github-actions nim cpp

type Base* = ref object of RootObj
method printSpace(c: var Base): void = discard
type Derived = ref object of Base
method printSpace(c: var Derived) = discard
juancarlospaco commented 12 months ago

@github-actions nim cpp

type Base* = ref object of RootObj
method printSpace(c: var Base): void = discard
type Derived = ref object of Base
method printSpace(c: var Derived) = discard

test

juancarlospaco commented 12 months ago

@github-actions nim cpp

type Base* = ref object of RootObj
method printSpace(c: var Base): void = discard
type Derived = ref object of Base
method printSpace(c: var Derived) = discard
github-actions[bot] commented 12 months ago

@juancarlospaco (owner)

devel :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp: In function ‘void printSpace__temp_u5(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*&)’:
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp:114:100: error: cannot declare pointer to ‘struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&’
  114 |                 printSpace__temp_u8((*((tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&*) (&(c_p0)))));
      |                                                                                                    ^
Error: execution of an external compiler program 'g++ -c -std=gnu++17 -funsigned-char  -w -fmax-errors=3 -fpermissive   -I'/home/runner/.choosenim/toolchains/nim-#devel/lib' -I/home/runner/work/nimrun-action-minefield/nimrun-action-minefield -o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp.o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp' failed with exit code: 1

Stats

  • Created 2023-07-04T17:41:53Z
  • Started 2023-07-04T17:42:24
  • Finished 2023-07-04T17:42:25
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( nnkPostfix.newTree( newIdentNode("*"), newIdentNode("Base") ), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("RootObj") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("void"), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Base") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("Derived"), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("Base") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Derived") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ```

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix #define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); #define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename;NI len;VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); #define nimln_(n) \ FR_.line = n; #define nimlf_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw; struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg; struct RootObj; struct TNimTypeV2; struct TNimTypeV2 { void* destructor; NI size; NI16 align; NI16 depth; NU32* display; void* traceImpl; void* typeInfoV1; NI flags; }; struct RootObj { TNimTypeV2* m_type; }; struct tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw : public RootObj { }; N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u3)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c_p0); static N_INLINE(void, nimFrame)(TFrame* s_p0); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_u4446)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u8)(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*& c_p0); static N_INLINE(NIM_BOOL, isObjDisplayCheck)(TNimTypeV2* source_p0, NI16 targetDepth_p1, NU32 token_p2); N_LIB_PRIVATE N_NOINLINE(void, raiseObjectConversionError)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TFrame* framePtr__system_u3877; static N_INLINE(void, nimFrame)(TFrame* s_p0) { { if (!(framePtr__system_u3877 == ((TFrame*) NIM_NIL))) goto LA3_; { (*s_p0).calldepth = ((NI16)0); } } goto LA1_; LA3_: ; { (*s_p0).calldepth = (NI16)((*framePtr__system_u3877).calldepth + ((NI16)1)); } LA1_: ; (*s_p0).prev = framePtr__system_u3877; framePtr__system_u3877 = s_p0; { if (!((*s_p0).calldepth == ((NI16)2000))) goto LA8_; { callDepthLimitReached__system_u4446(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_u3877 = (*framePtr__system_u3877).prev; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u3)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c_p0) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u8)(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*& c_p0) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } static N_INLINE(NIM_BOOL, isObjDisplayCheck)(TNimTypeV2* source_p0, NI16 targetDepth_p1, NU32 token_p2) { NIM_BOOL result; NIM_BOOL T1_; nimfr_("isObjDisplayCheck", "/home/runner/.choosenim/toolchains/nim-#devel/lib/system/arc.nim"); result = (NIM_BOOL)0; T1_ = (NIM_BOOL)0; T1_ = (targetDepth_p1 <= (*source_p0).depth); if (!(T1_)) goto LA2_; T1_ = ((*source_p0).display[targetDepth_p1] == token_p2); LA2_: ; result = T1_; popFrame(); return result; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u5)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c_p0) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); { if (!((c_p0) && (isObjDisplayCheck((*c_p0).m_type, 2, 1644321536)))) goto LA3_; { if (c_p0 && !isObjDisplayCheck((*c_p0).m_type, 2, 1644321536)){ raiseObjectConversionError(); } printSpace__temp_u8((*((tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&*) (&(c_p0))))); } } goto LA1_; LA3_: ; { if (!((c_p0) && (isObjDisplayCheck((*c_p0).m_type, 1, 944683776)))) goto LA6_; { printSpace__temp_u3(c_p0); } } goto LA1_; LA6_: ; LA1_: ; popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { #if 0 void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); (*inner)(); #else atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); PreMainInner(); #endif } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { #if 0 void (*volatile inner)(void); PreMain(); inner = NimMainInner; (*inner)(); #else PreMain(); NimMainInner(); #endif } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { } } ```
stable :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp: In function ‘void printSpace__temp_5(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*&)’:
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp:162:99: error: cannot declare pointer to ‘struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&’
  162 |                 printSpace__temp_8((*((tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&*) (&(c)))));
      |                                                                                                   ^
Error: execution of an external compiler program 'g++ -c -std=gnu++14 -funsigned-char  -w -fmax-errors=3 -fpermissive   -I/home/runner/.choosenim/toolchains/nim-1.6.14/lib -I/home/runner/work/nimrun-action-minefield/nimrun-action-minefield -o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp.o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp' failed with exit code: 1

Stats

  • Created 2023-07-04T17:41:53Z
  • Started 2023-07-04T17:42:26
  • Finished 2023-07-04T17:42:27
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( nnkPostfix.newTree( newIdentNode("*"), newIdentNode("Base") ), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("RootObj") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("void"), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Base") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("Derived"), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("Base") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Derived") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ```

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw; struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg; struct RootObj; struct TNimType; struct TNimNode; typedef NU8 tyEnum_TNimKind__3rC59cFdCULJbp2tHLSZMXQ; typedef NU8 tySet_tyEnum_TNimTypeFlag__z9aX9aBGjlpDIC58y9bKcsmzA; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__3rC59cFdCULJbp2tHLSZMXQ kind; tySet_tyEnum_TNimTypeFlag__z9aX9aBGjlpDIC58y9bKcsmzA flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; struct RootObj { TNimType* m_type; }; struct tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw : public RootObj { }; typedef NU8 tyEnum_TNimNodeKind__XtzEyxd2A8uwMJcYYak9c7w; struct TNimNode { tyEnum_TNimNodeKind__XtzEyxd2A8uwMJcYYak9c7w kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg : public tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw { }; N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_3)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_2993)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_8)(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*& c); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass); N_LIB_PRIVATE N_NOINLINE(void, raiseObjectConversionError)(void); static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NOINLINE(NIM_BOOL, isObjSlowPath__system_3355)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmtempdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TNimType NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_; N_LIB_PRIVATE TNimType NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_; N_LIB_PRIVATE TNimType NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; static TNimType* Nim_OfCheck_CACHE3[2]; static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__system_2564 == ((TFrame*) NIM_NIL))) goto LA3_; { (*s).calldepth = ((NI16) 0); } } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__system_2564).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__system_2564; framePtr__system_2564 = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; { callDepthLimitReached__system_2993(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_2564 = (*framePtr__system_2564).prev; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_3)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_8)(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache) { NIM_BOOL result; { result = (NIM_BOOL)0; { if (!(obj == subclass)) goto LA3_; { result = NIM_TRUE; goto BeforeRet_; } } LA3_: ; { if (!((*obj).base == subclass)) goto LA7_; { result = NIM_TRUE; goto BeforeRet_; } } LA7_: ; { if (!(cache[(((NI) 0))- 0] == obj)) goto LA11_; { result = NIM_FALSE; goto BeforeRet_; } } LA11_: ; { if (!(cache[(((NI) 1))- 0] == obj)) goto LA15_; { result = NIM_TRUE; goto BeforeRet_; } } LA15_: ; result = isObjSlowPath__system_3355(obj, subclass, cache); goto BeforeRet_; }BeforeRet_: ; return result; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_5)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); { if (!((c) && ((*c).m_type == (&NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_)))) goto LA3_; { if (c && !isObj((*c).m_type, (&NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_))){ raiseObjectConversionError(); } printSpace__temp_8((*((tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&*) (&(c))))); } } goto LA1_; LA3_: ; { if (!((c) && (isObjWithCache((*c).m_type, (&NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_), Nim_OfCheck_CACHE3)))) goto LA6_; { printSpace__temp_3(c); } } goto LA1_; LA6_: ; LA1_: ; popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000(); initStackBottomWith((void *)&inner); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000(); atmtempdotnim_DatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { } } N_LIB_PRIVATE N_NIMCALL(void, atmtempdotnim_DatInit000)(void) { static TNimNode TM__h69aKLv9bAieBdiFzvDngbMw_0[2]; NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.size = sizeof(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw); NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.align = NIM_ALIGNOF(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw); NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.kind = 17; NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.base = (&NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_); NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].kind = 2; NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[0]; NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.size = sizeof(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg); NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.align = NIM_ALIGNOF(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg); NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.kind = 17; NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.base = (&NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_); NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].kind = 2; NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[1]; } ```
1.6.0 :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp: In function ‘void printSpace_temp_5(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*&)’:
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp:162:97: error: cannot declare pointer to ‘struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&’
  162 |                 printSpace_temp_8((*((tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&*) (&(c)))));
      |                                                                                                 ^
Error: execution of an external compiler program 'g++ -c -std=gnu++14 -funsigned-char  -w -fmax-errors=3 -fpermissive   -I/home/runner/.choosenim/toolchains/nim-1.6.0/lib -I/home/runner/work/nimrun-action-minefield/nimrun-action-minefield -o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp.o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp' failed with exit code: 1

Stats

  • Created 2023-07-04T17:41:53Z
  • Started 2023-07-04T17:42:30
  • Finished 2023-07-04T17:42:31
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( nnkPostfix.newTree( newIdentNode("*"), newIdentNode("Base") ), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("RootObj") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("void"), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Base") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("Derived"), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("Base") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Derived") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ```

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA; struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA; struct RootObj; struct TNimType; struct TNimNode; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; struct RootObj { TNimType* m_type; }; struct tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA : public RootObj { }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA : public tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA { }; N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_3)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached_system_2993)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_8)(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*& c); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass); N_LIB_PRIVATE N_NOINLINE(void, raiseObjectConversionError)(void); static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NOINLINE(NIM_BOOL, isObjSlowPath_system_3347)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TNimType NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_; N_LIB_PRIVATE TNimType NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_; N_LIB_PRIVATE TNimType NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; static TNimType* Nim_OfCheck_CACHE3[2]; static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr_system_2564 == ((TFrame*) NIM_NIL))) goto LA3_; { (*s).calldepth = ((NI16) 0); } } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr_system_2564).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr_system_2564; framePtr_system_2564 = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; { callDepthLimitReached_system_2993(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr_system_2564 = (*framePtr_system_2564).prev; } N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_3)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_8)(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache) { NIM_BOOL result; { result = (NIM_BOOL)0; { if (!(obj == subclass)) goto LA3_; { result = NIM_TRUE; goto BeforeRet_; } } LA3_: ; { if (!((*obj).base == subclass)) goto LA7_; { result = NIM_TRUE; goto BeforeRet_; } } LA7_: ; { if (!(cache[(((NI) 0))- 0] == obj)) goto LA11_; { result = NIM_FALSE; goto BeforeRet_; } } LA11_: ; { if (!(cache[(((NI) 1))- 0] == obj)) goto LA15_; { result = NIM_TRUE; goto BeforeRet_; } } LA15_: ; result = isObjSlowPath_system_3347(obj, subclass, cache); goto BeforeRet_; }BeforeRet_: ; return result; } N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_5)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); { if (!((c) && ((*c).m_type == (&NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_)))) goto LA3_; { if (c && !isObj((*c).m_type, (&NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_))){ raiseObjectConversionError(); } printSpace_temp_8((*((tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&*) (&(c))))); } } goto LA1_; LA3_: ; { if (!((c) && (isObjWithCache((*c).m_type, (&NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_), Nim_OfCheck_CACHE3)))) goto LA6_; { printSpace_temp_3(c); } } goto LA1_; LA6_: ; LA1_: ; popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); tempDatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { } } N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void) { static TNimNode TM__h69aKLv9bAieBdiFzvDngbMw_0[2]; NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.size = sizeof(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA); NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.align = NIM_ALIGNOF(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA); NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.kind = 17; NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.base = (&NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_); NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].kind = 2; NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[0]; NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.size = sizeof(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA); NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.align = NIM_ALIGNOF(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA); NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.kind = 17; NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.base = (&NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_); NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].kind = 2; NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[1]; } ```
1.4.0 :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp: In function ‘void printSpace__IFovLOPUgzS7AKF6XRsbmQ(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*&)’:
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp:183:115: error: cannot declare pointer to ‘struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&’
  183 |                 printSpace__qGJls9cgdB4kneGWilyN1tg((*((tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&*) (&(c)))));
      |                                                                                                                   ^
Error: execution of an external compiler program 'g++ -c -std=gnu++14 -funsigned-char  -w -fmax-errors=3 -fpermissive   -I/home/runner/.choosenim/toolchains/nim-1.4.0/lib -I/home/runner/work/nimrun-action-minefield/nimrun-action-minefield -o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp.o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp' failed with exit code: 1

Stats

  • Created 2023-07-04T17:41:53Z
  • Started 2023-07-04T17:42:34
  • Finished 2023-07-04T17:42:35
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( nnkPostfix.newTree( newIdentNode("*"), newIdentNode("Base") ), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("RootObj") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("void"), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Base") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("Derived"), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("Base") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Derived") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ```

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA; struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA; struct RootObj; struct TNimType; struct TNimNode; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; struct RootObj { TNimType* m_type; }; struct tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA : public RootObj { }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA : public tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA { }; N_LIB_PRIVATE N_NIMCALL(void, printSpace__XiYVKq64v3eZDMsUSuphSQ)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, printSpace__qGJls9cgdB4kneGWilyN1tg)(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*& c); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass); N_LIB_PRIVATE N_NOINLINE(void, raiseObjectConversionError)(void); static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NOINLINE(NIM_BOOL, isObjSlowPath__H8B7g6iFRPI5Em52KFoD6w)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TNimType NTI__ytyiCJqK439aF9cIibuRVpAg_; N_LIB_PRIVATE TNimType NTI__TUrjfNqjKwa5cz9avcZYwsA_; N_LIB_PRIVATE TNimType NTI__QicCB7GN6dWokpZFgUI4JA_; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; static TNimType* Nim_OfCheck_CACHE3[2]; static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; { (*s).calldepth = ((NI16) 0); } } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; { callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__XiYVKq64v3eZDMsUSuphSQ)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, printSpace__qGJls9cgdB4kneGWilyN1tg)(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); popFrame(); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache) { NIM_BOOL result; { result = (NIM_BOOL)0; { if (!(obj == subclass)) goto LA3_; { result = NIM_TRUE; goto BeforeRet_; } } LA3_: ; { if (!((*obj).base == subclass)) goto LA7_; { result = NIM_TRUE; goto BeforeRet_; } } LA7_: ; { if (!(cache[(((NI) 0))- 0] == obj)) goto LA11_; { result = NIM_FALSE; goto BeforeRet_; } } LA11_: ; { if (!(cache[(((NI) 1))- 0] == obj)) goto LA15_; { result = NIM_TRUE; goto BeforeRet_; } } LA15_: ; result = isObjSlowPath__H8B7g6iFRPI5Em52KFoD6w(obj, subclass, cache); goto BeforeRet_; }BeforeRet_: ; return result; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__IFovLOPUgzS7AKF6XRsbmQ)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); { if (!((c) && ((*c).m_type == (&NTI__QicCB7GN6dWokpZFgUI4JA_)))) goto LA3_; { if (c && !isObj((*c).m_type, (&NTI__QicCB7GN6dWokpZFgUI4JA_))){ raiseObjectConversionError(); } printSpace__qGJls9cgdB4kneGWilyN1tg((*((tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&*) (&(c))))); } } goto LA1_; LA3_: ; { if (!((c) && (isObjWithCache((*c).m_type, (&NTI__TUrjfNqjKwa5cz9avcZYwsA_), Nim_OfCheck_CACHE3)))) goto LA6_; { printSpace__XiYVKq64v3eZDMsUSuphSQ(c); } } goto LA1_; LA6_: ; LA1_: ; popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); tempDatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { } } N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void) { static TNimNode TM__h69aKLv9bAieBdiFzvDngbMw_0[2]; NTI__TUrjfNqjKwa5cz9avcZYwsA_.size = sizeof(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA); NTI__TUrjfNqjKwa5cz9avcZYwsA_.align = NIM_ALIGNOF(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA); NTI__TUrjfNqjKwa5cz9avcZYwsA_.kind = 17; NTI__TUrjfNqjKwa5cz9avcZYwsA_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_); NTI__TUrjfNqjKwa5cz9avcZYwsA_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].kind = 2; NTI__TUrjfNqjKwa5cz9avcZYwsA_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[0]; NTI__QicCB7GN6dWokpZFgUI4JA_.size = sizeof(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA); NTI__QicCB7GN6dWokpZFgUI4JA_.align = NIM_ALIGNOF(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA); NTI__QicCB7GN6dWokpZFgUI4JA_.kind = 17; NTI__QicCB7GN6dWokpZFgUI4JA_.base = (&NTI__TUrjfNqjKwa5cz9avcZYwsA_); NTI__QicCB7GN6dWokpZFgUI4JA_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].kind = 2; NTI__QicCB7GN6dWokpZFgUI4JA_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[1]; } ```
1.2.0 :+1: OK

Output

Stats

  • Created 2023-07-04T17:41:53Z
  • Started 2023-07-04T17:42:48
  • Finished 2023-07-04T17:42:49
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :+1: OK

Output

Stats

  • Created 2023-07-04T17:41:53Z
  • Started 2023-07-04T17:42:59
  • Finished 2023-07-04T17:43:00
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
:robot: Bug found in 44 minutes bisecting 6 commits at 0 commits per second.
juancarlospaco commented 12 months ago

@github-actions nim cpp

import tables
var tested:Table[string,int]

template `[]`[V](t:Table[string,V],key:string):V =
  echo V
  tables.`[]`(t,key)
discard tested["three"]
github-actions[bot] commented 12 months ago

@juancarlospaco (owner)

devel :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(7, 15) Error: internal error: expr(skType); unknown symbol
No stack traceback available
To create a stacktrace, rerun compilation with './koch temp cpp <file>', see https://nim-lang.github.io/Nim/intern.html#debugging-the-compiler for details

Stats

  • Created 2023-07-04T17:53:10Z
  • Started 2023-07-04T17:53:38
  • Finished 2023-07-04T17:53:39
  • Duration now
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( newIdentNode("tables") ), nnkVarSection.newTree( nnkIdentDefs.newTree( newIdentNode("tested"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("int") ), newEmptyNode() ) ), nnkTemplateDef.newTree( nnkAccQuoted.newTree( newIdentNode("[]") ), newEmptyNode(), nnkGenericParams.newTree( nnkIdentDefs.newTree( newIdentNode("V"), newEmptyNode(), newEmptyNode() ) ), nnkFormalParams.newTree( newIdentNode("V"), nnkIdentDefs.newTree( newIdentNode("t"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("V") ), newEmptyNode() ), nnkIdentDefs.newTree( newIdentNode("key"), newIdentNode("string"), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("echo"), newIdentNode("V") ), nnkCall.newTree( nnkDotExpr.newTree( newIdentNode("tables"), nnkAccQuoted.newTree( newIdentNode("[]") ) ), newIdentNode("t"), newIdentNode("key") ) ) ), nnkDiscardStmt.newTree( nnkBracketExpr.newTree( newIdentNode("tested"), newLit("three") ) ) ) ```

IR

```cpp ```
stable :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(7, 15) Error: internal error: expr(skType); unknown symbol
No stack traceback available
To create a stacktrace, rerun compilation with './koch temp cpp <file>', see https://nim-lang.github.io/Nim/intern.html#debugging-the-compiler for details

Stats

  • Created 2023-07-04T17:53:10Z
  • Started 2023-07-04T17:53:39
  • Finished 2023-07-04T17:53:40
  • Duration now
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( newIdentNode("tables") ), nnkVarSection.newTree( nnkIdentDefs.newTree( newIdentNode("tested"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("int") ), newEmptyNode() ) ), nnkTemplateDef.newTree( nnkAccQuoted.newTree( newIdentNode("[]") ), newEmptyNode(), nnkGenericParams.newTree( nnkIdentDefs.newTree( newIdentNode("V"), newEmptyNode(), newEmptyNode() ) ), nnkFormalParams.newTree( newIdentNode("V"), nnkIdentDefs.newTree( newIdentNode("t"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("V") ), newEmptyNode() ), nnkIdentDefs.newTree( newIdentNode("key"), newIdentNode("string"), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("echo"), newIdentNode("V") ), nnkCall.newTree( nnkDotExpr.newTree( newIdentNode("tables"), nnkAccQuoted.newTree( newIdentNode("[]") ) ), newIdentNode("t"), newIdentNode("key") ) ) ), nnkDiscardStmt.newTree( nnkBracketExpr.newTree( newIdentNode("tested"), newLit("three") ) ) ) ```

IR

```cpp ```
1.6.0 :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(7, 15) Error: internal error: expr(skType); unknown symbol
No stack traceback available
To create a stacktrace, rerun compilation with './koch temp cpp <file>', see https://nim-lang.github.io/Nim/intern.html#debugging-the-compiler for details

Stats

  • Created 2023-07-04T17:53:10Z
  • Started 2023-07-04T17:53:43
  • Finished 2023-07-04T17:53:43
  • Duration now
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( newIdentNode("tables") ), nnkVarSection.newTree( nnkIdentDefs.newTree( newIdentNode("tested"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("int") ), newEmptyNode() ) ), nnkTemplateDef.newTree( nnkAccQuoted.newTree( newIdentNode("[]") ), newEmptyNode(), nnkGenericParams.newTree( nnkIdentDefs.newTree( newIdentNode("V"), newEmptyNode(), newEmptyNode() ) ), nnkFormalParams.newTree( newIdentNode("V"), nnkIdentDefs.newTree( newIdentNode("t"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("V") ), newEmptyNode() ), nnkIdentDefs.newTree( newIdentNode("key"), newIdentNode("string"), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("echo"), newIdentNode("V") ), nnkCall.newTree( nnkDotExpr.newTree( newIdentNode("tables"), nnkAccQuoted.newTree( newIdentNode("[]") ) ), newIdentNode("t"), newIdentNode("key") ) ) ), nnkDiscardStmt.newTree( nnkBracketExpr.newTree( newIdentNode("tested"), newLit("three") ) ) ) ```

IR

```cpp ```
1.4.0 :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp
/home/runner/.choosenim/toolchains/nim-1.4.0/lib/pure/collections/tables.nim []
Error: unhandled exception: key not found: three [KeyError]
Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp '

Stats

  • Created 2023-07-04T17:53:10Z
  • Started 2023-07-04T17:53:46
  • Finished 2023-07-04T17:53:48
  • Duration 2 minutes
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( newIdentNode("tables") ), nnkVarSection.newTree( nnkIdentDefs.newTree( newIdentNode("tested"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("int") ), newEmptyNode() ) ), nnkTemplateDef.newTree( nnkAccQuoted.newTree( newIdentNode("[]") ), newEmptyNode(), nnkGenericParams.newTree( nnkIdentDefs.newTree( newIdentNode("V"), newEmptyNode(), newEmptyNode() ) ), nnkFormalParams.newTree( newIdentNode("V"), nnkIdentDefs.newTree( newIdentNode("t"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("V") ), newEmptyNode() ), nnkIdentDefs.newTree( newIdentNode("key"), newIdentNode("string"), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("echo"), newIdentNode("V") ), nnkCall.newTree( nnkDotExpr.newTree( newIdentNode("tables"), nnkAccQuoted.newTree( newIdentNode("[]") ) ), newIdentNode("t"), newIdentNode("key") ) ) ), nnkDiscardStmt.newTree( nnkBracketExpr.newTree( newIdentNode("tested"), newLit("three") ) ) ) ```

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ; struct tySequence__pUxI6Ljo6IKKHXKOZkQ7Og; struct TNimType; struct TNimNode; struct NimStringDesc; struct TGenericSeq; struct tyTuple__sr3s7uVHpu9cEbbDnCSg8yQ; struct tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ { tySequence__pUxI6Ljo6IKKHXKOZkQ7Og* data; NI counter; }; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void); struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc : public TGenericSeq { NIM_CHAR data[SEQ_DECL_SIZE]; }; typedef NimStringDesc* tyArray__nHXaesL0DJZHyVS07ARPRA[1]; struct tyTuple__sr3s7uVHpu9cEbbDnCSg8yQ { NI Field0; NimStringDesc* Field1; NI Field2; }; struct tySequence__pUxI6Ljo6IKKHXKOZkQ7Og : TGenericSeq { tyTuple__sr3s7uVHpu9cEbbDnCSg8yQ data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op); static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void); N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc); N_LIB_PRIVATE N_NIMCALL(void, echoBinSafe)(NimStringDesc** args, NI argsLen_0); N_LIB_PRIVATE N_NIMCALL(NI*, X5BX5D___UtkVeTv4Q8MPC5159bNq7dw)(tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ& t, NimStringDesc* key); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, stdlib_tablesDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TNimType NTI__i55W8RrwGKsG9cl0sAKxgkQ_; STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_4, "170141183460469231731687303715884105727", 39); static NIM_CONST tyArray__nHXaesL0DJZHyVS07ARPRA TM__h69aKLv9bAieBdiFzvDngbMw_3 = {((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_4)} ; STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_5, "three", 5); N_LIB_PRIVATE tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ tested__UEZG3zyh2MYot56RUQYWHg; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void) { nimGCvisit((void*)tested__UEZG3zyh2MYot56RUQYWHg.data, 0); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; { (*s).calldepth = ((NI16) 0); } } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; { callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); stdlib_tablesDatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); nimRegisterGlobalMarker(TM__h69aKLv9bAieBdiFzvDngbMw_2); echoBinSafe(TM__h69aKLv9bAieBdiFzvDngbMw_3, 1); (void)((*X5BX5D___UtkVeTv4Q8MPC5159bNq7dw(tested__UEZG3zyh2MYot56RUQYWHg, ((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_5)))); popFrame(); } } ```
1.2.0 :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp
/home/runner/.choosenim/toolchains/nim-1.2.0/lib/pure/collections/tables.nim []
Error: unhandled exception: key not found: three [KeyError]
Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp '

Stats

  • Created 2023-07-04T17:53:10Z
  • Started 2023-07-04T17:54:03
  • Finished 2023-07-04T17:54:04
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( newIdentNode("tables") ), nnkVarSection.newTree( nnkIdentDefs.newTree( newIdentNode("tested"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("int") ), newEmptyNode() ) ), nnkTemplateDef.newTree( nnkAccQuoted.newTree( newIdentNode("[]") ), newEmptyNode(), nnkGenericParams.newTree( nnkIdentDefs.newTree( newIdentNode("V"), newEmptyNode(), newEmptyNode() ) ), nnkFormalParams.newTree( newIdentNode("V"), nnkIdentDefs.newTree( newIdentNode("t"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("V") ), newEmptyNode() ), nnkIdentDefs.newTree( newIdentNode("key"), newIdentNode("string"), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("echo"), newIdentNode("V") ), nnkCall.newTree( nnkDotExpr.newTree( newIdentNode("tables"), nnkAccQuoted.newTree( newIdentNode("[]") ) ), newIdentNode("t"), newIdentNode("key") ) ) ), nnkDiscardStmt.newTree( nnkBracketExpr.newTree( newIdentNode("tested"), newLit("three") ) ) ) ```

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ; struct tySequence__pUxI6Ljo6IKKHXKOZkQ7Og; struct TNimType; struct TNimNode; struct NimStringDesc; struct TGenericSeq; struct tyTuple__sr3s7uVHpu9cEbbDnCSg8yQ; struct tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ { tySequence__pUxI6Ljo6IKKHXKOZkQ7Og* data; NI counter; }; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void); struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc : public TGenericSeq { NIM_CHAR data[SEQ_DECL_SIZE]; }; typedef NimStringDesc* tyArray__nHXaesL0DJZHyVS07ARPRA[1]; struct tyTuple__sr3s7uVHpu9cEbbDnCSg8yQ { NI Field0; NimStringDesc* Field1; NI Field2; }; struct tySequence__pUxI6Ljo6IKKHXKOZkQ7Og : TGenericSeq { tyTuple__sr3s7uVHpu9cEbbDnCSg8yQ data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op); static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void); N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc); N_LIB_PRIVATE N_NIMCALL(void, echoBinSafe)(NimStringDesc** args, NI argsLen_0); N_LIB_PRIVATE N_NIMCALL(NI*, X5BX5D___UtkVeTv4Q8MPC5159bNq7dw)(tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ& t, NimStringDesc* key); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, stdlib_tablesDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TNimType NTI__i55W8RrwGKsG9cl0sAKxgkQ_; STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_4, "170141183460469231731687303715884105727", 39); static NIM_CONST tyArray__nHXaesL0DJZHyVS07ARPRA TM__h69aKLv9bAieBdiFzvDngbMw_3 = {((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_4)} ; STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_5, "three", 5); N_LIB_PRIVATE tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ tested__UEZG3zyh2MYot56RUQYWHg; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void) { nimGCvisit((void*)tested__UEZG3zyh2MYot56RUQYWHg.data, 0); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; { (*s).calldepth = ((NI16) 0); } } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; { callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); stdlib_tablesDatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); nimRegisterGlobalMarker(TM__h69aKLv9bAieBdiFzvDngbMw_2); echoBinSafe(TM__h69aKLv9bAieBdiFzvDngbMw_3, 1); (void)((*X5BX5D___UtkVeTv4Q8MPC5159bNq7dw(tested__UEZG3zyh2MYot56RUQYWHg, ((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_5)))); popFrame(); } } ```
1.0.0 :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp
/home/runner/.choosenim/toolchains/nim-1.0.0/lib/pure/collections/tables.nim []
Error: unhandled exception: key not found: three [KeyError]
Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp '

Stats

  • Created 2023-07-04T17:53:10Z
  • Started 2023-07-04T17:54:17
  • Finished 2023-07-04T17:54:18
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( newIdentNode("tables") ), nnkVarSection.newTree( nnkIdentDefs.newTree( newIdentNode("tested"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("int") ), newEmptyNode() ) ), nnkTemplateDef.newTree( nnkAccQuoted.newTree( newIdentNode("[]") ), newEmptyNode(), nnkGenericParams.newTree( nnkIdentDefs.newTree( newIdentNode("V"), newEmptyNode(), newEmptyNode() ) ), nnkFormalParams.newTree( newIdentNode("V"), nnkIdentDefs.newTree( newIdentNode("t"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("V") ), newEmptyNode() ), nnkIdentDefs.newTree( newIdentNode("key"), newIdentNode("string"), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("echo"), newIdentNode("V") ), nnkCall.newTree( nnkDotExpr.newTree( newIdentNode("tables"), nnkAccQuoted.newTree( newIdentNode("[]") ) ), newIdentNode("t"), newIdentNode("key") ) ) ), nnkDiscardStmt.newTree( nnkBracketExpr.newTree( newIdentNode("tested"), newLit("three") ) ) ) ```

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ; struct tySequence__pUxI6Ljo6IKKHXKOZkQ7Og; struct TNimType; struct TNimNode; struct NimStringDesc; struct TGenericSeq; struct tyTuple__sr3s7uVHpu9cEbbDnCSg8yQ; struct tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ { tySequence__pUxI6Ljo6IKKHXKOZkQ7Og* data; NI counter; }; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void); struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc : public TGenericSeq { NIM_CHAR data[SEQ_DECL_SIZE]; }; typedef NimStringDesc* tyArray__nHXaesL0DJZHyVS07ARPRA[1]; struct tyTuple__sr3s7uVHpu9cEbbDnCSg8yQ { NI Field0; NimStringDesc* Field1; NI Field2; }; struct tySequence__pUxI6Ljo6IKKHXKOZkQ7Og : TGenericSeq { tyTuple__sr3s7uVHpu9cEbbDnCSg8yQ data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op); static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void); N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc); N_LIB_PRIVATE N_NIMCALL(void, echoBinSafe)(NimStringDesc** args, NI argsLen_0); N_LIB_PRIVATE N_NIMCALL(NI*, X5BX5D___UtkVeTv4Q8MPC5159bNq7dw)(tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ& t, NimStringDesc* key); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, stdlib_tablesDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TNimType NTI__i55W8RrwGKsG9cl0sAKxgkQ_; STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_4, "170141183460469231731687303715884105727", 39); static NIM_CONST tyArray__nHXaesL0DJZHyVS07ARPRA TM__h69aKLv9bAieBdiFzvDngbMw_3 = {((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_4)} ; STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_5, "three", 5); N_LIB_PRIVATE tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ tested__UEZG3zyh2MYot56RUQYWHg; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void) { nimGCvisit((void*)tested__UEZG3zyh2MYot56RUQYWHg.data, 0); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; { (*s).calldepth = ((NI16) 0); } } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; { callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); stdlib_tablesDatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); nimRegisterGlobalMarker(TM__h69aKLv9bAieBdiFzvDngbMw_2); echoBinSafe(TM__h69aKLv9bAieBdiFzvDngbMw_3, 1); (void)((*X5BX5D___UtkVeTv4Q8MPC5159bNq7dw(tested__UEZG3zyh2MYot56RUQYWHg, ((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_5)))); popFrame(); } } ```
:robot: Bug found in 42 minutes bisecting 6 commits at 0 commits per second.
juancarlospaco commented 12 months ago

@github-actions nim cpp -d:danger

type Base* = ref object of RootObj
method printSpace(c: var Base): void = discard
type Derived = ref object of Base
method printSpace(c: var Derived) = discard
github-actions[bot] commented 12 months ago

@juancarlospaco (owner)

devel :-1: FAIL

Output

Error: Command failed: nim cpp -d:danger --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp: In function ‘void printSpace__temp_u5(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*&)’:
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp:65:100: error: cannot declare pointer to ‘struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&’
   65 | {               printSpace__temp_u8((*((tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&*) (&(c_p0)))));
      |                                                                                                    ^
Error: execution of an external compiler program 'g++ -c -std=gnu++17 -funsigned-char  -w -fmax-errors=3 -fpermissive -O3 -fno-strict-aliasing -fno-ident -fno-math-errno   -I'/home/runner/.choosenim/toolchains/nim-#devel/lib' -I/home/runner/work/nimrun-action-minefield/nimrun-action-minefield -o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp.o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp' failed with exit code: 1

Stats

  • Created 2023-07-04T17:55:57Z
  • Started 2023-07-04T17:56:31
  • Finished 2023-07-04T17:56:33
  • Duration 2 minutes
  • Commands nim cpp -d:danger --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( nnkPostfix.newTree( newIdentNode("*"), newIdentNode("Base") ), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("RootObj") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("void"), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Base") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("Derived"), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("Base") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Derived") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ```

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix struct tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw; struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg; struct RootObj; struct TNimTypeV2; struct TNimTypeV2 { void* destructor; NI size; NI16 align; NI16 depth; NU32* display; void* traceImpl; void* typeInfoV1; NI flags; }; struct RootObj { TNimTypeV2* m_type; }; struct tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw : public RootObj { }; N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u3)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c_p0); N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u8)(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*& c_p0); static N_INLINE(NIM_BOOL, isObjDisplayCheck)(TNimTypeV2* source_p0, NI16 targetDepth_p1, NU32 token_p2); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u3)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c_p0) { } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u8)(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*& c_p0) { } static N_INLINE(NIM_BOOL, isObjDisplayCheck)(TNimTypeV2* source_p0, NI16 targetDepth_p1, NU32 token_p2) { NIM_BOOL result; NIM_BOOL T1_; result = (NIM_BOOL)0; T1_ = (NIM_BOOL)0; T1_ = (targetDepth_p1 <= (*source_p0).depth); if (!(T1_)) goto LA2_; T1_ = ((*source_p0).display[targetDepth_p1] == token_p2); LA2_: ; result = T1_; return result; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u5)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c_p0) { { if (!((c_p0) && (isObjDisplayCheck((*c_p0).m_type, 2, 1644321536)))) goto LA3_; { printSpace__temp_u8((*((tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&*) (&(c_p0))))); } } goto LA1_; LA3_: ; { if (!((c_p0) && (isObjDisplayCheck((*c_p0).m_type, 1, 944683776)))) goto LA6_; { printSpace__temp_u3(c_p0); } } goto LA1_; LA6_: ; LA1_: ; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { #if 0 void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); (*inner)(); #else atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); PreMainInner(); #endif } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { #if 0 void (*volatile inner)(void); PreMain(); inner = NimMainInner; (*inner)(); #else PreMain(); NimMainInner(); #endif } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { } } ```
stable :-1: FAIL

Output

Error: Command failed: nim cpp -d:danger --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp: In function ‘void printSpace__temp_5(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*&)’:
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp:115:99: error: cannot declare pointer to ‘struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&’
  115 | {               printSpace__temp_8((*((tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&*) (&(c)))));
      |                                                                                                   ^
Error: execution of an external compiler program 'g++ -c -std=gnu++14 -funsigned-char  -w -fmax-errors=3 -fpermissive -O3 -fno-strict-aliasing -fno-ident   -I/home/runner/.choosenim/toolchains/nim-1.6.14/lib -I/home/runner/work/nimrun-action-minefield/nimrun-action-minefield -o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp.o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp' failed with exit code: 1

Stats

  • Created 2023-07-04T17:55:57Z
  • Started 2023-07-04T17:56:34
  • Finished 2023-07-04T17:56:35
  • Duration 2 minutes
  • Commands nim cpp -d:danger --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( nnkPostfix.newTree( newIdentNode("*"), newIdentNode("Base") ), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("RootObj") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("void"), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Base") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("Derived"), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("Base") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Derived") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ```

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix #define nimfr_(x, y) #define nimln_(x, y) struct tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw; struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg; struct RootObj; struct TNimType; struct TNimNode; typedef NU8 tyEnum_TNimKind__3rC59cFdCULJbp2tHLSZMXQ; typedef NU8 tySet_tyEnum_TNimTypeFlag__z9aX9aBGjlpDIC58y9bKcsmzA; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__3rC59cFdCULJbp2tHLSZMXQ kind; tySet_tyEnum_TNimTypeFlag__z9aX9aBGjlpDIC58y9bKcsmzA flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; struct RootObj { TNimType* m_type; }; struct tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw : public RootObj { }; typedef NU8 tyEnum_TNimNodeKind__XtzEyxd2A8uwMJcYYak9c7w; struct TNimNode { tyEnum_TNimNodeKind__XtzEyxd2A8uwMJcYYak9c7w kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg : public tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw { }; N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_3)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c); N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_8)(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*& c); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NOINLINE(NIM_BOOL, isObjSlowPath__system_3321)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmtempdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TNimType NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_; N_LIB_PRIVATE TNimType NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_; N_LIB_PRIVATE TNimType NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_; static TNimType* Nim_OfCheck_CACHE3[2]; N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_3)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c) { } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_8)(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*& c) { } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache) { NIM_BOOL result; { result = (NIM_BOOL)0; { if (!(obj == subclass)) goto LA3_; { result = NIM_TRUE; goto BeforeRet_; } } LA3_: ; { if (!((*obj).base == subclass)) goto LA7_; { result = NIM_TRUE; goto BeforeRet_; } } LA7_: ; { if (!(cache[(((NI) 0))- 0] == obj)) goto LA11_; { result = NIM_FALSE; goto BeforeRet_; } } LA11_: ; { if (!(cache[(((NI) 1))- 0] == obj)) goto LA15_; { result = NIM_TRUE; goto BeforeRet_; } } LA15_: ; result = isObjSlowPath__system_3321(obj, subclass, cache); goto BeforeRet_; }BeforeRet_: ; return result; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_5)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c) { { if (!((c) && ((*c).m_type == (&NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_)))) goto LA3_; { printSpace__temp_8((*((tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&*) (&(c))))); } } goto LA1_; LA3_: ; { if (!((c) && (isObjWithCache((*c).m_type, (&NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_), Nim_OfCheck_CACHE3)))) goto LA6_; { printSpace__temp_3(c); } } goto LA1_; LA6_: ; LA1_: ; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000(); initStackBottomWith((void *)&inner); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000(); atmtempdotnim_DatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { } } N_LIB_PRIVATE N_NIMCALL(void, atmtempdotnim_DatInit000)(void) { static TNimNode TM__h69aKLv9bAieBdiFzvDngbMw_0[2]; NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.size = sizeof(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw); NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.align = NIM_ALIGNOF(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw); NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.kind = 17; NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.base = (&NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_); NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].kind = 2; NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[0]; NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.size = sizeof(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg); NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.align = NIM_ALIGNOF(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg); NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.kind = 17; NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.base = (&NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_); NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].kind = 2; NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[1]; } ```
1.6.0 :-1: FAIL

Output

Error: Command failed: nim cpp -d:danger --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp: In function ‘void printSpace_temp_5(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*&)’:
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp:115:97: error: cannot declare pointer to ‘struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&’
  115 | {               printSpace_temp_8((*((tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&*) (&(c)))));
      |                                                                                                 ^
Error: execution of an external compiler program 'g++ -c -std=gnu++14 -funsigned-char  -w -fmax-errors=3 -fpermissive -O3 -fno-strict-aliasing -fno-ident   -I/home/runner/.choosenim/toolchains/nim-1.6.0/lib -I/home/runner/work/nimrun-action-minefield/nimrun-action-minefield -o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp.o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp' failed with exit code: 1

Stats

  • Created 2023-07-04T17:55:57Z
  • Started 2023-07-04T17:56:39
  • Finished 2023-07-04T17:56:41
  • Duration 2 minutes
  • Commands nim cpp -d:danger --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( nnkPostfix.newTree( newIdentNode("*"), newIdentNode("Base") ), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("RootObj") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("void"), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Base") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("Derived"), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("Base") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Derived") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ```

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix #define nimfr_(x, y) #define nimln_(x, y) struct tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA; struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA; struct RootObj; struct TNimType; struct TNimNode; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; struct RootObj { TNimType* m_type; }; struct tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA : public RootObj { }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA : public tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA { }; N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_3)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c); N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_8)(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*& c); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NOINLINE(NIM_BOOL, isObjSlowPath_system_3313)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TNimType NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_; N_LIB_PRIVATE TNimType NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_; N_LIB_PRIVATE TNimType NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_; static TNimType* Nim_OfCheck_CACHE3[2]; N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_3)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c) { } N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_8)(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*& c) { } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache) { NIM_BOOL result; { result = (NIM_BOOL)0; { if (!(obj == subclass)) goto LA3_; { result = NIM_TRUE; goto BeforeRet_; } } LA3_: ; { if (!((*obj).base == subclass)) goto LA7_; { result = NIM_TRUE; goto BeforeRet_; } } LA7_: ; { if (!(cache[(((NI) 0))- 0] == obj)) goto LA11_; { result = NIM_FALSE; goto BeforeRet_; } } LA11_: ; { if (!(cache[(((NI) 1))- 0] == obj)) goto LA15_; { result = NIM_TRUE; goto BeforeRet_; } } LA15_: ; result = isObjSlowPath_system_3313(obj, subclass, cache); goto BeforeRet_; }BeforeRet_: ; return result; } N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_5)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c) { { if (!((c) && ((*c).m_type == (&NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_)))) goto LA3_; { printSpace_temp_8((*((tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&*) (&(c))))); } } goto LA1_; LA3_: ; { if (!((c) && (isObjWithCache((*c).m_type, (&NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_), Nim_OfCheck_CACHE3)))) goto LA6_; { printSpace_temp_3(c); } } goto LA1_; LA6_: ; LA1_: ; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); tempDatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { } } N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void) { static TNimNode TM__h69aKLv9bAieBdiFzvDngbMw_0[2]; NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.size = sizeof(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA); NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.align = NIM_ALIGNOF(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA); NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.kind = 17; NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.base = (&NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_); NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].kind = 2; NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[0]; NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.size = sizeof(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA); NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.align = NIM_ALIGNOF(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA); NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.kind = 17; NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.base = (&NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_); NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].kind = 2; NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[1]; } ```
1.4.0 :-1: FAIL

Output

Error: Command failed: nim cpp -d:danger --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp: In function ‘void printSpace__IFovLOPUgzS7AKF6XRsbmQ(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*&)’:
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp:133:115: error: cannot declare pointer to ‘struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&’
  133 | {               printSpace__qGJls9cgdB4kneGWilyN1tg((*((tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&*) (&(c)))));
      |                                                                                                                   ^
Error: execution of an external compiler program 'g++ -c -std=gnu++14 -funsigned-char  -w -fmax-errors=3 -fpermissive -O3 -fno-strict-aliasing -fno-ident   -I/home/runner/.choosenim/toolchains/nim-1.4.0/lib -I/home/runner/work/nimrun-action-minefield/nimrun-action-minefield -o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp.o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp' failed with exit code: 1

Stats

  • Created 2023-07-04T17:55:57Z
  • Started 2023-07-04T17:56:44
  • Finished 2023-07-04T17:56:47
  • Duration 2 minutes
  • Commands nim cpp -d:danger --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( nnkPostfix.newTree( newIdentNode("*"), newIdentNode("Base") ), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("RootObj") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("void"), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Base") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("Derived"), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("Base") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Derived") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ```

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix #define nimfr_(x, y) #define nimln_(x, y) struct tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA; struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA; struct RootObj; struct TNimType; struct TNimNode; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; struct RootObj { TNimType* m_type; }; struct tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA : public RootObj { }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA : public tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA { }; N_LIB_PRIVATE N_NIMCALL(void, printSpace__XiYVKq64v3eZDMsUSuphSQ)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c); N_LIB_PRIVATE N_NIMCALL(void, printSpace__qGJls9cgdB4kneGWilyN1tg)(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*& c); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NOINLINE(NIM_BOOL, isObjSlowPath__H8B7g6iFRPI5Em52KFoD6w)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TNimType NTI__ytyiCJqK439aF9cIibuRVpAg_; N_LIB_PRIVATE TNimType NTI__TUrjfNqjKwa5cz9avcZYwsA_; N_LIB_PRIVATE TNimType NTI__QicCB7GN6dWokpZFgUI4JA_; static TNimType* Nim_OfCheck_CACHE3[2]; N_LIB_PRIVATE N_NIMCALL(void, printSpace__XiYVKq64v3eZDMsUSuphSQ)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c) { } N_LIB_PRIVATE N_NIMCALL(void, printSpace__qGJls9cgdB4kneGWilyN1tg)(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*& c) { } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache) { NIM_BOOL result; { result = (NIM_BOOL)0; { if (!(obj == subclass)) goto LA3_; { result = NIM_TRUE; goto BeforeRet_; } } LA3_: ; { if (!((*obj).base == subclass)) goto LA7_; { result = NIM_TRUE; goto BeforeRet_; } } LA7_: ; { if (!(cache[(((NI) 0))- 0] == obj)) goto LA11_; { result = NIM_FALSE; goto BeforeRet_; } } LA11_: ; { if (!(cache[(((NI) 1))- 0] == obj)) goto LA15_; { result = NIM_TRUE; goto BeforeRet_; } } LA15_: ; result = isObjSlowPath__H8B7g6iFRPI5Em52KFoD6w(obj, subclass, cache); goto BeforeRet_; }BeforeRet_: ; return result; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__IFovLOPUgzS7AKF6XRsbmQ)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c) { { if (!((c) && ((*c).m_type == (&NTI__QicCB7GN6dWokpZFgUI4JA_)))) goto LA3_; { printSpace__qGJls9cgdB4kneGWilyN1tg((*((tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&*) (&(c))))); } } goto LA1_; LA3_: ; { if (!((c) && (isObjWithCache((*c).m_type, (&NTI__TUrjfNqjKwa5cz9avcZYwsA_), Nim_OfCheck_CACHE3)))) goto LA6_; { printSpace__XiYVKq64v3eZDMsUSuphSQ(c); } } goto LA1_; LA6_: ; LA1_: ; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); tempDatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { } } N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void) { static TNimNode TM__h69aKLv9bAieBdiFzvDngbMw_0[2]; NTI__TUrjfNqjKwa5cz9avcZYwsA_.size = sizeof(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA); NTI__TUrjfNqjKwa5cz9avcZYwsA_.align = NIM_ALIGNOF(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA); NTI__TUrjfNqjKwa5cz9avcZYwsA_.kind = 17; NTI__TUrjfNqjKwa5cz9avcZYwsA_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_); NTI__TUrjfNqjKwa5cz9avcZYwsA_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].kind = 2; NTI__TUrjfNqjKwa5cz9avcZYwsA_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[0]; NTI__QicCB7GN6dWokpZFgUI4JA_.size = sizeof(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA); NTI__QicCB7GN6dWokpZFgUI4JA_.align = NIM_ALIGNOF(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA); NTI__QicCB7GN6dWokpZFgUI4JA_.kind = 17; NTI__QicCB7GN6dWokpZFgUI4JA_.base = (&NTI__TUrjfNqjKwa5cz9avcZYwsA_); NTI__QicCB7GN6dWokpZFgUI4JA_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].kind = 2; NTI__QicCB7GN6dWokpZFgUI4JA_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[1]; } ```
1.2.0 :+1: OK

Output

Stats

  • Created 2023-07-04T17:55:57Z
  • Started 2023-07-04T17:57:02
  • Finished 2023-07-04T17:57:04
  • Duration 2 minutes
  • Commands nim cpp -d:danger --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :+1: OK

Output

Stats

  • Created 2023-07-04T17:55:57Z
  • Started 2023-07-04T17:57:17
  • Finished 2023-07-04T17:57:19
  • Duration 2 minutes
  • Commands nim cpp -d:danger --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
:robot: Bug found in 57 minutes bisecting 6 commits at 0 commits per second.
juancarlospaco commented 12 months ago

@github-actions nim cpp -d:debug

type Base* = ref object of RootObj
method printSpace(c: var Base): void = discard
type Derived = ref object of Base
method printSpace(c: var Derived) = discard
github-actions[bot] commented 12 months ago

@juancarlospaco (owner)

devel :-1: FAIL

Output

Error: Command failed: nim cpp -d:debug --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp: In function ‘void printSpace__temp_u5(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*&)’:
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp:114:100: error: cannot declare pointer to ‘struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&’
  114 |                 printSpace__temp_u8((*((tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&*) (&(c_p0)))));
      |                                                                                                    ^
Error: execution of an external compiler program 'g++ -c -std=gnu++17 -funsigned-char  -w -fmax-errors=3 -fpermissive   -I'/home/runner/.choosenim/toolchains/nim-#devel/lib' -I/home/runner/work/nimrun-action-minefield/nimrun-action-minefield -o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp.o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp' failed with exit code: 1

Stats

  • Created 2023-07-04T18:07:44Z
  • Started 2023-07-04T18:08:27
  • Finished 2023-07-04T18:08:30
  • Duration 3 minutes
  • Commands nim cpp -d:debug --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix #define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); #define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename;NI len;VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); #define nimln_(n) \ FR_.line = n; #define nimlf_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw; struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg; struct RootObj; struct TNimTypeV2; struct TNimTypeV2 { void* destructor; NI size; NI16 align; NI16 depth; NU32* display; void* traceImpl; void* typeInfoV1; NI flags; }; struct RootObj { TNimTypeV2* m_type; }; struct tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw : public RootObj { }; N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u3)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c_p0); static N_INLINE(void, nimFrame)(TFrame* s_p0); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_u4446)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u8)(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*& c_p0); static N_INLINE(NIM_BOOL, isObjDisplayCheck)(TNimTypeV2* source_p0, NI16 targetDepth_p1, NU32 token_p2); N_LIB_PRIVATE N_NOINLINE(void, raiseObjectConversionError)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TFrame* framePtr__system_u3877; static N_INLINE(void, nimFrame)(TFrame* s_p0) { { if (!(framePtr__system_u3877 == ((TFrame*) NIM_NIL))) goto LA3_; { (*s_p0).calldepth = ((NI16)0); } } goto LA1_; LA3_: ; { (*s_p0).calldepth = (NI16)((*framePtr__system_u3877).calldepth + ((NI16)1)); } LA1_: ; (*s_p0).prev = framePtr__system_u3877; framePtr__system_u3877 = s_p0; { if (!((*s_p0).calldepth == ((NI16)2000))) goto LA8_; { callDepthLimitReached__system_u4446(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_u3877 = (*framePtr__system_u3877).prev; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u3)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c_p0) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u8)(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*& c_p0) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } static N_INLINE(NIM_BOOL, isObjDisplayCheck)(TNimTypeV2* source_p0, NI16 targetDepth_p1, NU32 token_p2) { NIM_BOOL result; NIM_BOOL T1_; nimfr_("isObjDisplayCheck", "/home/runner/.choosenim/toolchains/nim-#devel/lib/system/arc.nim"); result = (NIM_BOOL)0; T1_ = (NIM_BOOL)0; T1_ = (targetDepth_p1 <= (*source_p0).depth); if (!(T1_)) goto LA2_; T1_ = ((*source_p0).display[targetDepth_p1] == token_p2); LA2_: ; result = T1_; popFrame(); return result; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u5)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c_p0) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); { if (!((c_p0) && (isObjDisplayCheck((*c_p0).m_type, 2, 1644321536)))) goto LA3_; { if (c_p0 && !isObjDisplayCheck((*c_p0).m_type, 2, 1644321536)){ raiseObjectConversionError(); } printSpace__temp_u8((*((tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&*) (&(c_p0))))); } } goto LA1_; LA3_: ; { if (!((c_p0) && (isObjDisplayCheck((*c_p0).m_type, 1, 944683776)))) goto LA6_; { printSpace__temp_u3(c_p0); } } goto LA1_; LA6_: ; LA1_: ; popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { #if 0 void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); (*inner)(); #else atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); PreMainInner(); #endif } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { #if 0 void (*volatile inner)(void); PreMain(); inner = NimMainInner; (*inner)(); #else PreMain(); NimMainInner(); #endif } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { } } ```

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( nnkPostfix.newTree( newIdentNode("*"), newIdentNode("Base") ), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("RootObj") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("void"), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Base") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("Derived"), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("Base") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Derived") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ```
stable :-1: FAIL

Output

Error: Command failed: nim cpp -d:debug --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp: In function ‘void printSpace__temp_5(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*&)’:
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp:162:99: error: cannot declare pointer to ‘struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&’
  162 |                 printSpace__temp_8((*((tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&*) (&(c)))));
      |                                                                                                   ^
Error: execution of an external compiler program 'g++ -c -std=gnu++14 -funsigned-char  -w -fmax-errors=3 -fpermissive   -I/home/runner/.choosenim/toolchains/nim-1.6.14/lib -I/home/runner/work/nimrun-action-minefield/nimrun-action-minefield -o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp.o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp' failed with exit code: 1

Stats

  • Created 2023-07-04T18:07:44Z
  • Started 2023-07-04T18:08:31
  • Finished 2023-07-04T18:08:31
  • Duration 1 minute
  • Commands nim cpp -d:debug --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw; struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg; struct RootObj; struct TNimType; struct TNimNode; typedef NU8 tyEnum_TNimKind__3rC59cFdCULJbp2tHLSZMXQ; typedef NU8 tySet_tyEnum_TNimTypeFlag__z9aX9aBGjlpDIC58y9bKcsmzA; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__3rC59cFdCULJbp2tHLSZMXQ kind; tySet_tyEnum_TNimTypeFlag__z9aX9aBGjlpDIC58y9bKcsmzA flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; struct RootObj { TNimType* m_type; }; struct tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw : public RootObj { }; typedef NU8 tyEnum_TNimNodeKind__XtzEyxd2A8uwMJcYYak9c7w; struct TNimNode { tyEnum_TNimNodeKind__XtzEyxd2A8uwMJcYYak9c7w kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg : public tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw { }; N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_3)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_2993)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_8)(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*& c); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass); N_LIB_PRIVATE N_NOINLINE(void, raiseObjectConversionError)(void); static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NOINLINE(NIM_BOOL, isObjSlowPath__system_3355)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmtempdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TNimType NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_; N_LIB_PRIVATE TNimType NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_; N_LIB_PRIVATE TNimType NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; static TNimType* Nim_OfCheck_CACHE3[2]; static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__system_2564 == ((TFrame*) NIM_NIL))) goto LA3_; { (*s).calldepth = ((NI16) 0); } } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__system_2564).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__system_2564; framePtr__system_2564 = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; { callDepthLimitReached__system_2993(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_2564 = (*framePtr__system_2564).prev; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_3)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_8)(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache) { NIM_BOOL result; { result = (NIM_BOOL)0; { if (!(obj == subclass)) goto LA3_; { result = NIM_TRUE; goto BeforeRet_; } } LA3_: ; { if (!((*obj).base == subclass)) goto LA7_; { result = NIM_TRUE; goto BeforeRet_; } } LA7_: ; { if (!(cache[(((NI) 0))- 0] == obj)) goto LA11_; { result = NIM_FALSE; goto BeforeRet_; } } LA11_: ; { if (!(cache[(((NI) 1))- 0] == obj)) goto LA15_; { result = NIM_TRUE; goto BeforeRet_; } } LA15_: ; result = isObjSlowPath__system_3355(obj, subclass, cache); goto BeforeRet_; }BeforeRet_: ; return result; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_5)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); { if (!((c) && ((*c).m_type == (&NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_)))) goto LA3_; { if (c && !isObj((*c).m_type, (&NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_))){ raiseObjectConversionError(); } printSpace__temp_8((*((tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&*) (&(c))))); } } goto LA1_; LA3_: ; { if (!((c) && (isObjWithCache((*c).m_type, (&NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_), Nim_OfCheck_CACHE3)))) goto LA6_; { printSpace__temp_3(c); } } goto LA1_; LA6_: ; LA1_: ; popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000(); initStackBottomWith((void *)&inner); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000(); atmtempdotnim_DatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { } } N_LIB_PRIVATE N_NIMCALL(void, atmtempdotnim_DatInit000)(void) { static TNimNode TM__h69aKLv9bAieBdiFzvDngbMw_0[2]; NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.size = sizeof(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw); NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.align = NIM_ALIGNOF(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw); NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.kind = 17; NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.base = (&NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_); NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].kind = 2; NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[0]; NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.size = sizeof(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg); NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.align = NIM_ALIGNOF(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg); NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.kind = 17; NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.base = (&NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_); NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].kind = 2; NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[1]; } ```

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( nnkPostfix.newTree( newIdentNode("*"), newIdentNode("Base") ), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("RootObj") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("void"), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Base") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("Derived"), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("Base") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Derived") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ```
1.6.0 :-1: FAIL

Output

Error: Command failed: nim cpp -d:debug --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp: In function ‘void printSpace_temp_5(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*&)’:
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp:162:97: error: cannot declare pointer to ‘struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&’
  162 |                 printSpace_temp_8((*((tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&*) (&(c)))));
      |                                                                                                 ^
Error: execution of an external compiler program 'g++ -c -std=gnu++14 -funsigned-char  -w -fmax-errors=3 -fpermissive   -I/home/runner/.choosenim/toolchains/nim-1.6.0/lib -I/home/runner/work/nimrun-action-minefield/nimrun-action-minefield -o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp.o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp' failed with exit code: 1

Stats

  • Created 2023-07-04T18:07:44Z
  • Started 2023-07-04T18:08:35
  • Finished 2023-07-04T18:08:36
  • Duration 1 minute
  • Commands nim cpp -d:debug --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA; struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA; struct RootObj; struct TNimType; struct TNimNode; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; struct RootObj { TNimType* m_type; }; struct tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA : public RootObj { }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA : public tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA { }; N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_3)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached_system_2993)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_8)(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*& c); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass); N_LIB_PRIVATE N_NOINLINE(void, raiseObjectConversionError)(void); static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NOINLINE(NIM_BOOL, isObjSlowPath_system_3347)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TNimType NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_; N_LIB_PRIVATE TNimType NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_; N_LIB_PRIVATE TNimType NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; static TNimType* Nim_OfCheck_CACHE3[2]; static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr_system_2564 == ((TFrame*) NIM_NIL))) goto LA3_; { (*s).calldepth = ((NI16) 0); } } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr_system_2564).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr_system_2564; framePtr_system_2564 = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; { callDepthLimitReached_system_2993(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr_system_2564 = (*framePtr_system_2564).prev; } N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_3)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_8)(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache) { NIM_BOOL result; { result = (NIM_BOOL)0; { if (!(obj == subclass)) goto LA3_; { result = NIM_TRUE; goto BeforeRet_; } } LA3_: ; { if (!((*obj).base == subclass)) goto LA7_; { result = NIM_TRUE; goto BeforeRet_; } } LA7_: ; { if (!(cache[(((NI) 0))- 0] == obj)) goto LA11_; { result = NIM_FALSE; goto BeforeRet_; } } LA11_: ; { if (!(cache[(((NI) 1))- 0] == obj)) goto LA15_; { result = NIM_TRUE; goto BeforeRet_; } } LA15_: ; result = isObjSlowPath_system_3347(obj, subclass, cache); goto BeforeRet_; }BeforeRet_: ; return result; } N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_5)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); { if (!((c) && ((*c).m_type == (&NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_)))) goto LA3_; { if (c && !isObj((*c).m_type, (&NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_))){ raiseObjectConversionError(); } printSpace_temp_8((*((tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&*) (&(c))))); } } goto LA1_; LA3_: ; { if (!((c) && (isObjWithCache((*c).m_type, (&NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_), Nim_OfCheck_CACHE3)))) goto LA6_; { printSpace_temp_3(c); } } goto LA1_; LA6_: ; LA1_: ; popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); tempDatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { } } N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void) { static TNimNode TM__h69aKLv9bAieBdiFzvDngbMw_0[2]; NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.size = sizeof(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA); NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.align = NIM_ALIGNOF(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA); NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.kind = 17; NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.base = (&NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_); NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].kind = 2; NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[0]; NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.size = sizeof(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA); NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.align = NIM_ALIGNOF(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA); NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.kind = 17; NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.base = (&NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_); NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].kind = 2; NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[1]; } ```

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( nnkPostfix.newTree( newIdentNode("*"), newIdentNode("Base") ), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("RootObj") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("void"), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Base") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("Derived"), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("Base") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Derived") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ```
1.4.0 :-1: FAIL

Output

Error: Command failed: nim cpp -d:debug --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp: In function ‘void printSpace__IFovLOPUgzS7AKF6XRsbmQ(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*&)’:
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp:183:115: error: cannot declare pointer to ‘struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&’
  183 |                 printSpace__qGJls9cgdB4kneGWilyN1tg((*((tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&*) (&(c)))));
      |                                                                                                                   ^
Error: execution of an external compiler program 'g++ -c -std=gnu++14 -funsigned-char  -w -fmax-errors=3 -fpermissive   -I/home/runner/.choosenim/toolchains/nim-1.4.0/lib -I/home/runner/work/nimrun-action-minefield/nimrun-action-minefield -o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp.o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp' failed with exit code: 1

Stats

  • Created 2023-07-04T18:07:44Z
  • Started 2023-07-04T18:08:39
  • Finished 2023-07-04T18:08:40
  • Duration 1 minute
  • Commands nim cpp -d:debug --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA; struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA; struct RootObj; struct TNimType; struct TNimNode; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; struct RootObj { TNimType* m_type; }; struct tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA : public RootObj { }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA : public tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA { }; N_LIB_PRIVATE N_NIMCALL(void, printSpace__XiYVKq64v3eZDMsUSuphSQ)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, printSpace__qGJls9cgdB4kneGWilyN1tg)(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*& c); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass); N_LIB_PRIVATE N_NOINLINE(void, raiseObjectConversionError)(void); static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NOINLINE(NIM_BOOL, isObjSlowPath__H8B7g6iFRPI5Em52KFoD6w)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TNimType NTI__ytyiCJqK439aF9cIibuRVpAg_; N_LIB_PRIVATE TNimType NTI__TUrjfNqjKwa5cz9avcZYwsA_; N_LIB_PRIVATE TNimType NTI__QicCB7GN6dWokpZFgUI4JA_; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; static TNimType* Nim_OfCheck_CACHE3[2]; static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; { (*s).calldepth = ((NI16) 0); } } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; { callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__XiYVKq64v3eZDMsUSuphSQ)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, printSpace__qGJls9cgdB4kneGWilyN1tg)(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); popFrame(); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache) { NIM_BOOL result; { result = (NIM_BOOL)0; { if (!(obj == subclass)) goto LA3_; { result = NIM_TRUE; goto BeforeRet_; } } LA3_: ; { if (!((*obj).base == subclass)) goto LA7_; { result = NIM_TRUE; goto BeforeRet_; } } LA7_: ; { if (!(cache[(((NI) 0))- 0] == obj)) goto LA11_; { result = NIM_FALSE; goto BeforeRet_; } } LA11_: ; { if (!(cache[(((NI) 1))- 0] == obj)) goto LA15_; { result = NIM_TRUE; goto BeforeRet_; } } LA15_: ; result = isObjSlowPath__H8B7g6iFRPI5Em52KFoD6w(obj, subclass, cache); goto BeforeRet_; }BeforeRet_: ; return result; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__IFovLOPUgzS7AKF6XRsbmQ)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); { if (!((c) && ((*c).m_type == (&NTI__QicCB7GN6dWokpZFgUI4JA_)))) goto LA3_; { if (c && !isObj((*c).m_type, (&NTI__QicCB7GN6dWokpZFgUI4JA_))){ raiseObjectConversionError(); } printSpace__qGJls9cgdB4kneGWilyN1tg((*((tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&*) (&(c))))); } } goto LA1_; LA3_: ; { if (!((c) && (isObjWithCache((*c).m_type, (&NTI__TUrjfNqjKwa5cz9avcZYwsA_), Nim_OfCheck_CACHE3)))) goto LA6_; { printSpace__XiYVKq64v3eZDMsUSuphSQ(c); } } goto LA1_; LA6_: ; LA1_: ; popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); tempDatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { } } N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void) { static TNimNode TM__h69aKLv9bAieBdiFzvDngbMw_0[2]; NTI__TUrjfNqjKwa5cz9avcZYwsA_.size = sizeof(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA); NTI__TUrjfNqjKwa5cz9avcZYwsA_.align = NIM_ALIGNOF(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA); NTI__TUrjfNqjKwa5cz9avcZYwsA_.kind = 17; NTI__TUrjfNqjKwa5cz9avcZYwsA_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_); NTI__TUrjfNqjKwa5cz9avcZYwsA_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].kind = 2; NTI__TUrjfNqjKwa5cz9avcZYwsA_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[0]; NTI__QicCB7GN6dWokpZFgUI4JA_.size = sizeof(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA); NTI__QicCB7GN6dWokpZFgUI4JA_.align = NIM_ALIGNOF(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA); NTI__QicCB7GN6dWokpZFgUI4JA_.kind = 17; NTI__QicCB7GN6dWokpZFgUI4JA_.base = (&NTI__TUrjfNqjKwa5cz9avcZYwsA_); NTI__QicCB7GN6dWokpZFgUI4JA_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].kind = 2; NTI__QicCB7GN6dWokpZFgUI4JA_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[1]; } ```

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( nnkPostfix.newTree( newIdentNode("*"), newIdentNode("Base") ), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("RootObj") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("void"), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Base") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("Derived"), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("Base") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Derived") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ```
1.2.0 :+1: OK

Output

Stats

  • Created 2023-07-04T18:07:44Z
  • Started 2023-07-04T18:08:56
  • Finished 2023-07-04T18:08:56
  • Duration 1 minute
  • Commands nim cpp -d:debug --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :+1: OK

Output

Stats

  • Created 2023-07-04T18:07:44Z
  • Started 2023-07-04T18:09:11
  • Finished 2023-07-04T18:09:11
  • Duration 1 minute
  • Commands nim cpp -d:debug --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
:robot: Bug found in 52 minutes bisecting 6 commits at 0 commits per second.
juancarlospaco commented 12 months ago

@github-actions nim c

type Base* = ref object of RootObj
method printSpace(c: var Base): void = discard
type Derived = ref object of Base
method printSpace(c: var Derived) = discard
github-actions[bot] commented 12 months ago

@juancarlospaco (owner)

devel :+1: OK

Output

Stats

  • Created 2023-07-04T18:12:07Z
  • Started 2023-07-04T18:12:41
  • Finished 2023-07-04T18:12:42
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
stable :+1: OK

Output

Stats

  • Created 2023-07-04T18:12:07Z
  • Started 2023-07-04T18:12:42
  • Finished 2023-07-04T18:12:43
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.6.0 :+1: OK

Output

Stats

  • Created 2023-07-04T18:12:07Z
  • Started 2023-07-04T18:12:46
  • Finished 2023-07-04T18:12:47
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.4.0 :+1: OK

Output

Stats

  • Created 2023-07-04T18:12:07Z
  • Started 2023-07-04T18:12:49
  • Finished 2023-07-04T18:12:50
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.2.0 :+1: OK

Output

Stats

  • Created 2023-07-04T18:12:07Z
  • Started 2023-07-04T18:13:05
  • Finished 2023-07-04T18:13:06
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :+1: OK

Output

Stats

  • Created 2023-07-04T18:12:07Z
  • Started 2023-07-04T18:13:19
  • Finished 2023-07-04T18:13:19
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
:robot: Bug found in 42 minutes bisecting 6 commits at 0 commits per second.
juancarlospaco commented 12 months ago

@github-actions nim cpp

type Base* = ref object of RootObj
method printSpace(c: var Base): void = discard
type Derived = ref object of Base
method printSpace(c: var Derived) = discard
github-actions[bot] commented 12 months ago

@juancarlospaco (owner)

devel :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp: In function ‘void printSpace__temp_u5(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*&)’:
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp:114:100: error: cannot declare pointer to ‘struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&’
  114 |                 printSpace__temp_u8((*((tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&*) (&(c_p0)))));
      |                                                                                                    ^
Error: execution of an external compiler program 'g++ -c -std=gnu++17 -funsigned-char  -w -fmax-errors=3 -fpermissive   -I'/home/runner/.choosenim/toolchains/nim-#devel/lib' -I/home/runner/work/nimrun-action-minefield/nimrun-action-minefield -o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp.o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp' failed with exit code: 1

Stats

  • Created 2023-07-04T18:14:01Z
  • Started 2023-07-04T18:14:35
  • Finished 2023-07-04T18:14:36
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix #define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); #define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename;NI len;VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); #define nimln_(n) \ FR_.line = n; #define nimlf_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw; struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg; struct RootObj; struct TNimTypeV2; struct TNimTypeV2 { void* destructor; NI size; NI16 align; NI16 depth; NU32* display; void* traceImpl; void* typeInfoV1; NI flags; }; struct RootObj { TNimTypeV2* m_type; }; struct tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw : public RootObj { }; N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u3)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c_p0); static N_INLINE(void, nimFrame)(TFrame* s_p0); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_u4446)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u8)(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*& c_p0); static N_INLINE(NIM_BOOL, isObjDisplayCheck)(TNimTypeV2* source_p0, NI16 targetDepth_p1, NU32 token_p2); N_LIB_PRIVATE N_NOINLINE(void, raiseObjectConversionError)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TFrame* framePtr__system_u3877; static N_INLINE(void, nimFrame)(TFrame* s_p0) { { if (!(framePtr__system_u3877 == ((TFrame*) NIM_NIL))) goto LA3_; { (*s_p0).calldepth = ((NI16)0); } } goto LA1_; LA3_: ; { (*s_p0).calldepth = (NI16)((*framePtr__system_u3877).calldepth + ((NI16)1)); } LA1_: ; (*s_p0).prev = framePtr__system_u3877; framePtr__system_u3877 = s_p0; { if (!((*s_p0).calldepth == ((NI16)2000))) goto LA8_; { callDepthLimitReached__system_u4446(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_u3877 = (*framePtr__system_u3877).prev; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u3)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c_p0) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u8)(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*& c_p0) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } static N_INLINE(NIM_BOOL, isObjDisplayCheck)(TNimTypeV2* source_p0, NI16 targetDepth_p1, NU32 token_p2) { NIM_BOOL result; NIM_BOOL T1_; nimfr_("isObjDisplayCheck", "/home/runner/.choosenim/toolchains/nim-#devel/lib/system/arc.nim"); result = (NIM_BOOL)0; T1_ = (NIM_BOOL)0; T1_ = (targetDepth_p1 <= (*source_p0).depth); if (!(T1_)) goto LA2_; T1_ = ((*source_p0).display[targetDepth_p1] == token_p2); LA2_: ; result = T1_; popFrame(); return result; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u5)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c_p0) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); { if (!((c_p0) && (isObjDisplayCheck((*c_p0).m_type, 2, 1644321536)))) goto LA3_; { if (c_p0 && !isObjDisplayCheck((*c_p0).m_type, 2, 1644321536)){ raiseObjectConversionError(); } printSpace__temp_u8((*((tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&*) (&(c_p0))))); } } goto LA1_; LA3_: ; { if (!((c_p0) && (isObjDisplayCheck((*c_p0).m_type, 1, 944683776)))) goto LA6_; { printSpace__temp_u3(c_p0); } } goto LA1_; LA6_: ; LA1_: ; popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { #if 0 void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); (*inner)(); #else atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); PreMainInner(); #endif } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { #if 0 void (*volatile inner)(void); PreMain(); inner = NimMainInner; (*inner)(); #else PreMain(); NimMainInner(); #endif } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { } } ```

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( nnkPostfix.newTree( newIdentNode("*"), newIdentNode("Base") ), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("RootObj") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("void"), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Base") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("Derived"), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("Base") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Derived") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ```
stable :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp: In function ‘void printSpace__temp_5(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*&)’:
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp:162:99: error: cannot declare pointer to ‘struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&’
  162 |                 printSpace__temp_8((*((tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&*) (&(c)))));
      |                                                                                                   ^
Error: execution of an external compiler program 'g++ -c -std=gnu++14 -funsigned-char  -w -fmax-errors=3 -fpermissive   -I/home/runner/.choosenim/toolchains/nim-1.6.14/lib -I/home/runner/work/nimrun-action-minefield/nimrun-action-minefield -o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp.o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp' failed with exit code: 1

Stats

  • Created 2023-07-04T18:14:01Z
  • Started 2023-07-04T18:14:37
  • Finished 2023-07-04T18:14:37
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw; struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg; struct RootObj; struct TNimType; struct TNimNode; typedef NU8 tyEnum_TNimKind__3rC59cFdCULJbp2tHLSZMXQ; typedef NU8 tySet_tyEnum_TNimTypeFlag__z9aX9aBGjlpDIC58y9bKcsmzA; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__3rC59cFdCULJbp2tHLSZMXQ kind; tySet_tyEnum_TNimTypeFlag__z9aX9aBGjlpDIC58y9bKcsmzA flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; struct RootObj { TNimType* m_type; }; struct tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw : public RootObj { }; typedef NU8 tyEnum_TNimNodeKind__XtzEyxd2A8uwMJcYYak9c7w; struct TNimNode { tyEnum_TNimNodeKind__XtzEyxd2A8uwMJcYYak9c7w kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg : public tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw { }; N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_3)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_2993)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_8)(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*& c); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass); N_LIB_PRIVATE N_NOINLINE(void, raiseObjectConversionError)(void); static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NOINLINE(NIM_BOOL, isObjSlowPath__system_3355)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmtempdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TNimType NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_; N_LIB_PRIVATE TNimType NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_; N_LIB_PRIVATE TNimType NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; static TNimType* Nim_OfCheck_CACHE3[2]; static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__system_2564 == ((TFrame*) NIM_NIL))) goto LA3_; { (*s).calldepth = ((NI16) 0); } } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__system_2564).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__system_2564; framePtr__system_2564 = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; { callDepthLimitReached__system_2993(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_2564 = (*framePtr__system_2564).prev; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_3)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_8)(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache) { NIM_BOOL result; { result = (NIM_BOOL)0; { if (!(obj == subclass)) goto LA3_; { result = NIM_TRUE; goto BeforeRet_; } } LA3_: ; { if (!((*obj).base == subclass)) goto LA7_; { result = NIM_TRUE; goto BeforeRet_; } } LA7_: ; { if (!(cache[(((NI) 0))- 0] == obj)) goto LA11_; { result = NIM_FALSE; goto BeforeRet_; } } LA11_: ; { if (!(cache[(((NI) 1))- 0] == obj)) goto LA15_; { result = NIM_TRUE; goto BeforeRet_; } } LA15_: ; result = isObjSlowPath__system_3355(obj, subclass, cache); goto BeforeRet_; }BeforeRet_: ; return result; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_5)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); { if (!((c) && ((*c).m_type == (&NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_)))) goto LA3_; { if (c && !isObj((*c).m_type, (&NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_))){ raiseObjectConversionError(); } printSpace__temp_8((*((tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&*) (&(c))))); } } goto LA1_; LA3_: ; { if (!((c) && (isObjWithCache((*c).m_type, (&NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_), Nim_OfCheck_CACHE3)))) goto LA6_; { printSpace__temp_3(c); } } goto LA1_; LA6_: ; LA1_: ; popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000(); initStackBottomWith((void *)&inner); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000(); atmtempdotnim_DatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { } } N_LIB_PRIVATE N_NIMCALL(void, atmtempdotnim_DatInit000)(void) { static TNimNode TM__h69aKLv9bAieBdiFzvDngbMw_0[2]; NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.size = sizeof(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw); NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.align = NIM_ALIGNOF(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw); NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.kind = 17; NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.base = (&NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_); NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].kind = 2; NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[0]; NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.size = sizeof(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg); NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.align = NIM_ALIGNOF(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg); NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.kind = 17; NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.base = (&NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_); NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].kind = 2; NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[1]; } ```

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( nnkPostfix.newTree( newIdentNode("*"), newIdentNode("Base") ), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("RootObj") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("void"), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Base") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("Derived"), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("Base") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Derived") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ```
1.6.0 :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp: In function ‘void printSpace_temp_5(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*&)’:
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp:162:97: error: cannot declare pointer to ‘struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&’
  162 |                 printSpace_temp_8((*((tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&*) (&(c)))));
      |                                                                                                 ^
Error: execution of an external compiler program 'g++ -c -std=gnu++14 -funsigned-char  -w -fmax-errors=3 -fpermissive   -I/home/runner/.choosenim/toolchains/nim-1.6.0/lib -I/home/runner/work/nimrun-action-minefield/nimrun-action-minefield -o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp.o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp' failed with exit code: 1

Stats

  • Created 2023-07-04T18:14:01Z
  • Started 2023-07-04T18:14:40
  • Finished 2023-07-04T18:14:41
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA; struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA; struct RootObj; struct TNimType; struct TNimNode; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; struct RootObj { TNimType* m_type; }; struct tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA : public RootObj { }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA : public tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA { }; N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_3)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached_system_2993)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_8)(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*& c); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass); N_LIB_PRIVATE N_NOINLINE(void, raiseObjectConversionError)(void); static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NOINLINE(NIM_BOOL, isObjSlowPath_system_3347)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TNimType NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_; N_LIB_PRIVATE TNimType NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_; N_LIB_PRIVATE TNimType NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; static TNimType* Nim_OfCheck_CACHE3[2]; static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr_system_2564 == ((TFrame*) NIM_NIL))) goto LA3_; { (*s).calldepth = ((NI16) 0); } } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr_system_2564).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr_system_2564; framePtr_system_2564 = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; { callDepthLimitReached_system_2993(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr_system_2564 = (*framePtr_system_2564).prev; } N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_3)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_8)(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache) { NIM_BOOL result; { result = (NIM_BOOL)0; { if (!(obj == subclass)) goto LA3_; { result = NIM_TRUE; goto BeforeRet_; } } LA3_: ; { if (!((*obj).base == subclass)) goto LA7_; { result = NIM_TRUE; goto BeforeRet_; } } LA7_: ; { if (!(cache[(((NI) 0))- 0] == obj)) goto LA11_; { result = NIM_FALSE; goto BeforeRet_; } } LA11_: ; { if (!(cache[(((NI) 1))- 0] == obj)) goto LA15_; { result = NIM_TRUE; goto BeforeRet_; } } LA15_: ; result = isObjSlowPath_system_3347(obj, subclass, cache); goto BeforeRet_; }BeforeRet_: ; return result; } N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_5)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); { if (!((c) && ((*c).m_type == (&NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_)))) goto LA3_; { if (c && !isObj((*c).m_type, (&NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_))){ raiseObjectConversionError(); } printSpace_temp_8((*((tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&*) (&(c))))); } } goto LA1_; LA3_: ; { if (!((c) && (isObjWithCache((*c).m_type, (&NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_), Nim_OfCheck_CACHE3)))) goto LA6_; { printSpace_temp_3(c); } } goto LA1_; LA6_: ; LA1_: ; popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); tempDatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { } } N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void) { static TNimNode TM__h69aKLv9bAieBdiFzvDngbMw_0[2]; NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.size = sizeof(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA); NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.align = NIM_ALIGNOF(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA); NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.kind = 17; NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.base = (&NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_); NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].kind = 2; NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[0]; NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.size = sizeof(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA); NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.align = NIM_ALIGNOF(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA); NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.kind = 17; NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.base = (&NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_); NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].kind = 2; NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[1]; } ```

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( nnkPostfix.newTree( newIdentNode("*"), newIdentNode("Base") ), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("RootObj") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("void"), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Base") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("Derived"), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("Base") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Derived") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ```
1.4.0 :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp: In function ‘void printSpace__IFovLOPUgzS7AKF6XRsbmQ(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*&)’:
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp:183:115: error: cannot declare pointer to ‘struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&’
  183 |                 printSpace__qGJls9cgdB4kneGWilyN1tg((*((tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&*) (&(c)))));
      |                                                                                                                   ^
Error: execution of an external compiler program 'g++ -c -std=gnu++14 -funsigned-char  -w -fmax-errors=3 -fpermissive   -I/home/runner/.choosenim/toolchains/nim-1.4.0/lib -I/home/runner/work/nimrun-action-minefield/nimrun-action-minefield -o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp.o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp' failed with exit code: 1

Stats

  • Created 2023-07-04T18:14:01Z
  • Started 2023-07-04T18:14:45
  • Finished 2023-07-04T18:14:45
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA; struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA; struct RootObj; struct TNimType; struct TNimNode; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; struct RootObj { TNimType* m_type; }; struct tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA : public RootObj { }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA : public tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA { }; N_LIB_PRIVATE N_NIMCALL(void, printSpace__XiYVKq64v3eZDMsUSuphSQ)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, printSpace__qGJls9cgdB4kneGWilyN1tg)(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*& c); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass); N_LIB_PRIVATE N_NOINLINE(void, raiseObjectConversionError)(void); static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NOINLINE(NIM_BOOL, isObjSlowPath__H8B7g6iFRPI5Em52KFoD6w)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TNimType NTI__ytyiCJqK439aF9cIibuRVpAg_; N_LIB_PRIVATE TNimType NTI__TUrjfNqjKwa5cz9avcZYwsA_; N_LIB_PRIVATE TNimType NTI__QicCB7GN6dWokpZFgUI4JA_; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; static TNimType* Nim_OfCheck_CACHE3[2]; static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; { (*s).calldepth = ((NI16) 0); } } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; { callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__XiYVKq64v3eZDMsUSuphSQ)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, printSpace__qGJls9cgdB4kneGWilyN1tg)(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); popFrame(); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache) { NIM_BOOL result; { result = (NIM_BOOL)0; { if (!(obj == subclass)) goto LA3_; { result = NIM_TRUE; goto BeforeRet_; } } LA3_: ; { if (!((*obj).base == subclass)) goto LA7_; { result = NIM_TRUE; goto BeforeRet_; } } LA7_: ; { if (!(cache[(((NI) 0))- 0] == obj)) goto LA11_; { result = NIM_FALSE; goto BeforeRet_; } } LA11_: ; { if (!(cache[(((NI) 1))- 0] == obj)) goto LA15_; { result = NIM_TRUE; goto BeforeRet_; } } LA15_: ; result = isObjSlowPath__H8B7g6iFRPI5Em52KFoD6w(obj, subclass, cache); goto BeforeRet_; }BeforeRet_: ; return result; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__IFovLOPUgzS7AKF6XRsbmQ)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); { if (!((c) && ((*c).m_type == (&NTI__QicCB7GN6dWokpZFgUI4JA_)))) goto LA3_; { if (c && !isObj((*c).m_type, (&NTI__QicCB7GN6dWokpZFgUI4JA_))){ raiseObjectConversionError(); } printSpace__qGJls9cgdB4kneGWilyN1tg((*((tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&*) (&(c))))); } } goto LA1_; LA3_: ; { if (!((c) && (isObjWithCache((*c).m_type, (&NTI__TUrjfNqjKwa5cz9avcZYwsA_), Nim_OfCheck_CACHE3)))) goto LA6_; { printSpace__XiYVKq64v3eZDMsUSuphSQ(c); } } goto LA1_; LA6_: ; LA1_: ; popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); tempDatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { } } N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void) { static TNimNode TM__h69aKLv9bAieBdiFzvDngbMw_0[2]; NTI__TUrjfNqjKwa5cz9avcZYwsA_.size = sizeof(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA); NTI__TUrjfNqjKwa5cz9avcZYwsA_.align = NIM_ALIGNOF(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA); NTI__TUrjfNqjKwa5cz9avcZYwsA_.kind = 17; NTI__TUrjfNqjKwa5cz9avcZYwsA_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_); NTI__TUrjfNqjKwa5cz9avcZYwsA_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].kind = 2; NTI__TUrjfNqjKwa5cz9avcZYwsA_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[0]; NTI__QicCB7GN6dWokpZFgUI4JA_.size = sizeof(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA); NTI__QicCB7GN6dWokpZFgUI4JA_.align = NIM_ALIGNOF(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA); NTI__QicCB7GN6dWokpZFgUI4JA_.kind = 17; NTI__QicCB7GN6dWokpZFgUI4JA_.base = (&NTI__TUrjfNqjKwa5cz9avcZYwsA_); NTI__QicCB7GN6dWokpZFgUI4JA_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].kind = 2; NTI__QicCB7GN6dWokpZFgUI4JA_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[1]; } ```

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( nnkPostfix.newTree( newIdentNode("*"), newIdentNode("Base") ), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("RootObj") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("void"), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Base") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("Derived"), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("Base") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Derived") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ```
1.2.0 :+1: OK

Output

Stats

  • Created 2023-07-04T18:14:01Z
  • Started 2023-07-04T18:15:02
  • Finished 2023-07-04T18:15:02
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :+1: OK

Output

Stats

  • Created 2023-07-04T18:14:01Z
  • Started 2023-07-04T18:15:15
  • Finished 2023-07-04T18:15:16
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
:robot: Bug found in 49 minutes bisecting 6 commits at 0 commits per second.
juancarlospaco commented 12 months ago

@github-actions nim cpp

type Base* = ref object of RootObj
method printSpace(c: var Base): void = discard
type Derived = ref object of Base
method printSpace(c: var Derived) = discard
juancarlospaco commented 12 months ago

@github-actions nim cpp

type Base* = ref object of RootObj
method printSpace(c: var Base): void = discard
type Derived = ref object of Base
method printSpace(c: var Derived) = discard
github-actions[bot] commented 12 months ago

@juancarlospaco (owner)

devel :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp: In function ‘void printSpace__temp_u5(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*&)’:
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp:114:100: error: cannot declare pointer to ‘struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&’
  114 |                 printSpace__temp_u8((*((tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&*) (&(c_p0)))));
      |                                                                                                    ^
Error: execution of an external compiler program 'g++ -c -std=gnu++17 -funsigned-char  -w -fmax-errors=3 -fpermissive   -I'/home/runner/.choosenim/toolchains/nim-#devel/lib' -I/home/runner/work/nimrun-action-minefield/nimrun-action-minefield -o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp.o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp' failed with exit code: 1

Stats

  • Created 2023-07-04T18:40:48Z
  • Started 2023-07-04T18:41:21
  • Finished 2023-07-04T18:41:24
  • Duration 3 minutes
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix #define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); #define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename;NI len;VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); #define nimln_(n) \ FR_.line = n; #define nimlf_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw; struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg; struct RootObj; struct TNimTypeV2; struct TNimTypeV2 { void* destructor; NI size; NI16 align; NI16 depth; NU32* display; void* traceImpl; void* typeInfoV1; NI flags; }; struct RootObj { TNimTypeV2* m_type; }; struct tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw : public RootObj { }; N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u3)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c_p0); static N_INLINE(void, nimFrame)(TFrame* s_p0); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_u4446)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u8)(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*& c_p0); static N_INLINE(NIM_BOOL, isObjDisplayCheck)(TNimTypeV2* source_p0, NI16 targetDepth_p1, NU32 token_p2); N_LIB_PRIVATE N_NOINLINE(void, raiseObjectConversionError)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TFrame* framePtr__system_u3877; static N_INLINE(void, nimFrame)(TFrame* s_p0) { { if (!(framePtr__system_u3877 == ((TFrame*) NIM_NIL))) goto LA3_; { (*s_p0).calldepth = ((NI16)0); } } goto LA1_; LA3_: ; { (*s_p0).calldepth = (NI16)((*framePtr__system_u3877).calldepth + ((NI16)1)); } LA1_: ; (*s_p0).prev = framePtr__system_u3877; framePtr__system_u3877 = s_p0; { if (!((*s_p0).calldepth == ((NI16)2000))) goto LA8_; { callDepthLimitReached__system_u4446(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_u3877 = (*framePtr__system_u3877).prev; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u3)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c_p0) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u8)(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*& c_p0) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } static N_INLINE(NIM_BOOL, isObjDisplayCheck)(TNimTypeV2* source_p0, NI16 targetDepth_p1, NU32 token_p2) { NIM_BOOL result; NIM_BOOL T1_; nimfr_("isObjDisplayCheck", "/home/runner/.choosenim/toolchains/nim-#devel/lib/system/arc.nim"); result = (NIM_BOOL)0; T1_ = (NIM_BOOL)0; T1_ = (targetDepth_p1 <= (*source_p0).depth); if (!(T1_)) goto LA2_; T1_ = ((*source_p0).display[targetDepth_p1] == token_p2); LA2_: ; result = T1_; popFrame(); return result; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_u5)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c_p0) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); { if (!((c_p0) && (isObjDisplayCheck((*c_p0).m_type, 2, 1644321536)))) goto LA3_; { if (c_p0 && !isObjDisplayCheck((*c_p0).m_type, 2, 1644321536)){ raiseObjectConversionError(); } printSpace__temp_u8((*((tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&*) (&(c_p0))))); } } goto LA1_; LA3_: ; { if (!((c_p0) && (isObjDisplayCheck((*c_p0).m_type, 1, 944683776)))) goto LA6_; { printSpace__temp_u3(c_p0); } } goto LA1_; LA6_: ; LA1_: ; popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { #if 0 void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); (*inner)(); #else atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystematsexceptionsdotnim_DatInit000(); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminusathdevelatslibatssystemdotnim_Init000(); PreMainInner(); #endif } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { #if 0 void (*volatile inner)(void); PreMain(); inner = NimMainInner; (*inner)(); #else PreMain(); NimMainInner(); #endif } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { } } ```

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( nnkPostfix.newTree( newIdentNode("*"), newIdentNode("Base") ), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("RootObj") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("void"), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Base") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("Derived"), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("Base") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Derived") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ```
stable :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp: In function ‘void printSpace__temp_5(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*&)’:
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp:162:99: error: cannot declare pointer to ‘struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&’
  162 |                 printSpace__temp_8((*((tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&*) (&(c)))));
      |                                                                                                   ^
Error: execution of an external compiler program 'g++ -c -std=gnu++14 -funsigned-char  -w -fmax-errors=3 -fpermissive   -I/home/runner/.choosenim/toolchains/nim-1.6.14/lib -I/home/runner/work/nimrun-action-minefield/nimrun-action-minefield -o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp.o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp' failed with exit code: 1

Stats

  • Created 2023-07-04T18:40:48Z
  • Started 2023-07-04T18:41:24
  • Finished 2023-07-04T18:41:25
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw; struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg; struct RootObj; struct TNimType; struct TNimNode; typedef NU8 tyEnum_TNimKind__3rC59cFdCULJbp2tHLSZMXQ; typedef NU8 tySet_tyEnum_TNimTypeFlag__z9aX9aBGjlpDIC58y9bKcsmzA; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__3rC59cFdCULJbp2tHLSZMXQ kind; tySet_tyEnum_TNimTypeFlag__z9aX9aBGjlpDIC58y9bKcsmzA flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; struct RootObj { TNimType* m_type; }; struct tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw : public RootObj { }; typedef NU8 tyEnum_TNimNodeKind__XtzEyxd2A8uwMJcYYak9c7w; struct TNimNode { tyEnum_TNimNodeKind__XtzEyxd2A8uwMJcYYak9c7w kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; struct tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg : public tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw { }; N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_3)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__system_2993)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_8)(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*& c); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass); N_LIB_PRIVATE N_NOINLINE(void, raiseObjectConversionError)(void); static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NOINLINE(NIM_BOOL, isObjSlowPath__system_3355)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000)(void); N_LIB_PRIVATE N_NIMCALL(void, atmtempdotnim_DatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TNimType NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_; N_LIB_PRIVATE TNimType NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_; N_LIB_PRIVATE TNimType NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; extern TFrame* framePtr__system_2564; static TNimType* Nim_OfCheck_CACHE3[2]; static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__system_2564 == ((TFrame*) NIM_NIL))) goto LA3_; { (*s).calldepth = ((NI16) 0); } } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__system_2564).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__system_2564; framePtr__system_2564 = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; { callDepthLimitReached__system_2993(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__system_2564 = (*framePtr__system_2564).prev; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_3)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_8)(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache) { NIM_BOOL result; { result = (NIM_BOOL)0; { if (!(obj == subclass)) goto LA3_; { result = NIM_TRUE; goto BeforeRet_; } } LA3_: ; { if (!((*obj).base == subclass)) goto LA7_; { result = NIM_TRUE; goto BeforeRet_; } } LA7_: ; { if (!(cache[(((NI) 0))- 0] == obj)) goto LA11_; { result = NIM_FALSE; goto BeforeRet_; } } LA11_: ; { if (!(cache[(((NI) 1))- 0] == obj)) goto LA15_; { result = NIM_TRUE; goto BeforeRet_; } } LA15_: ; result = isObjSlowPath__system_3355(obj, subclass, cache); goto BeforeRet_; }BeforeRet_: ; return result; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__temp_5)(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); { if (!((c) && ((*c).m_type == (&NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_)))) goto LA3_; { if (c && !isObj((*c).m_type, (&NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_))){ raiseObjectConversionError(); } printSpace__temp_8((*((tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg*&*) (&(c))))); } } goto LA1_; LA3_: ; { if (!((c) && (isObjWithCache((*c).m_type, (&NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_), Nim_OfCheck_CACHE3)))) goto LA6_; { printSpace__temp_3(c); } } goto LA1_; LA6_: ; LA1_: ; popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_DatInit000(); initStackBottomWith((void *)&inner); atmdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot14atslibatssystemdotnim_Init000(); atmtempdotnim_DatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { } } N_LIB_PRIVATE N_NIMCALL(void, atmtempdotnim_DatInit000)(void) { static TNimNode TM__h69aKLv9bAieBdiFzvDngbMw_0[2]; NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.size = sizeof(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw); NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.align = NIM_ALIGNOF(tyObject_BasecolonObjectType___dDhOu1jbkKsXhhzMtx6fpw); NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.kind = 17; NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.base = (&NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_); NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].kind = 2; NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[0]; NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.size = sizeof(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg); NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.align = NIM_ALIGNOF(tyObject_DerivedcolonObjectType___6WICW8QTktJgPy679bnBxbg); NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.kind = 17; NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.base = (&NTIbase58objecttype__dDhOu1jbkKsXhhzMtx6fpw_); NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].kind = 2; NTIderived58objecttype__6WICW8QTktJgPy679bnBxbg_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[1]; } ```

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( nnkPostfix.newTree( newIdentNode("*"), newIdentNode("Base") ), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("RootObj") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("void"), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Base") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("Derived"), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("Base") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Derived") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ```
1.6.0 :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp: In function ‘void printSpace_temp_5(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*&)’:
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp:162:97: error: cannot declare pointer to ‘struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&’
  162 |                 printSpace_temp_8((*((tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&*) (&(c)))));
      |                                                                                                 ^
Error: execution of an external compiler program 'g++ -c -std=gnu++14 -funsigned-char  -w -fmax-errors=3 -fpermissive   -I/home/runner/.choosenim/toolchains/nim-1.6.0/lib -I/home/runner/work/nimrun-action-minefield/nimrun-action-minefield -o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp.o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp' failed with exit code: 1

Stats

  • Created 2023-07-04T18:40:48Z
  • Started 2023-07-04T18:41:29
  • Finished 2023-07-04T18:41:29
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA; struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA; struct RootObj; struct TNimType; struct TNimNode; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; struct RootObj { TNimType* m_type; }; struct tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA : public RootObj { }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA : public tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA { }; N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_3)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached_system_2993)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_8)(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*& c); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass); N_LIB_PRIVATE N_NOINLINE(void, raiseObjectConversionError)(void); static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NOINLINE(NIM_BOOL, isObjSlowPath_system_3347)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TNimType NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_; N_LIB_PRIVATE TNimType NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_; N_LIB_PRIVATE TNimType NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; extern TFrame* framePtr_system_2564; static TNimType* Nim_OfCheck_CACHE3[2]; static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr_system_2564 == ((TFrame*) NIM_NIL))) goto LA3_; { (*s).calldepth = ((NI16) 0); } } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr_system_2564).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr_system_2564; framePtr_system_2564 = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; { callDepthLimitReached_system_2993(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr_system_2564 = (*framePtr_system_2564).prev; } N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_3)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_8)(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); popFrame(); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache) { NIM_BOOL result; { result = (NIM_BOOL)0; { if (!(obj == subclass)) goto LA3_; { result = NIM_TRUE; goto BeforeRet_; } } LA3_: ; { if (!((*obj).base == subclass)) goto LA7_; { result = NIM_TRUE; goto BeforeRet_; } } LA7_: ; { if (!(cache[(((NI) 0))- 0] == obj)) goto LA11_; { result = NIM_FALSE; goto BeforeRet_; } } LA11_: ; { if (!(cache[(((NI) 1))- 0] == obj)) goto LA15_; { result = NIM_TRUE; goto BeforeRet_; } } LA15_: ; result = isObjSlowPath_system_3347(obj, subclass, cache); goto BeforeRet_; }BeforeRet_: ; return result; } N_LIB_PRIVATE N_NIMCALL(void, printSpace_temp_5)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim"); { if (!((c) && ((*c).m_type == (&NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_)))) goto LA3_; { if (c && !isObj((*c).m_type, (&NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_))){ raiseObjectConversionError(); } printSpace_temp_8((*((tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&*) (&(c))))); } } goto LA1_; LA3_: ; { if (!((c) && (isObjWithCache((*c).m_type, (&NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_), Nim_OfCheck_CACHE3)))) goto LA6_; { printSpace_temp_3(c); } } goto LA1_; LA6_: ; LA1_: ; popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); tempDatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { } } N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void) { static TNimNode TM__h69aKLv9bAieBdiFzvDngbMw_0[2]; NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.size = sizeof(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA); NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.align = NIM_ALIGNOF(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA); NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.kind = 17; NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.base = (&NTIrootobj__ytyiCJqK439aF9cIibuRVpAg_); NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].kind = 2; NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[0]; NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.size = sizeof(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA); NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.align = NIM_ALIGNOF(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA); NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.kind = 17; NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.base = (&NTIbase58objecttype__TUrjfNqjKwa5cz9avcZYwsA_); NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].kind = 2; NTIderived58objecttype__QicCB7GN6dWokpZFgUI4JA_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[1]; } ```

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( nnkPostfix.newTree( newIdentNode("*"), newIdentNode("Base") ), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("RootObj") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("void"), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Base") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("Derived"), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("Base") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Derived") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ```
1.4.0 :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp: In function ‘void printSpace__IFovLOPUgzS7AKF6XRsbmQ(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*&)’:
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp:183:115: error: cannot declare pointer to ‘struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&’
  183 |                 printSpace__qGJls9cgdB4kneGWilyN1tg((*((tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&*) (&(c)))));
      |                                                                                                                   ^
Error: execution of an external compiler program 'g++ -c -std=gnu++14 -funsigned-char  -w -fmax-errors=3 -fpermissive   -I/home/runner/.choosenim/toolchains/nim-1.4.0/lib -I/home/runner/work/nimrun-action-minefield/nimrun-action-minefield -o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp.o /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/@mtemp.nim.cpp' failed with exit code: 1

Stats

  • Created 2023-07-04T18:40:48Z
  • Started 2023-07-04T18:41:32
  • Finished 2023-07-04T18:41:33
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA; struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA; struct RootObj; struct TNimType; struct TNimNode; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; struct RootObj { TNimType* m_type; }; struct tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA : public RootObj { }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; struct tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA : public tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA { }; N_LIB_PRIVATE N_NIMCALL(void, printSpace__XiYVKq64v3eZDMsUSuphSQ)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, printSpace__qGJls9cgdB4kneGWilyN1tg)(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*& c); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass); N_LIB_PRIVATE N_NOINLINE(void, raiseObjectConversionError)(void); static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NOINLINE(NIM_BOOL, isObjSlowPath__H8B7g6iFRPI5Em52KFoD6w)(TNimType* obj, TNimType* subclass, TNimType** cache); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TNimType NTI__ytyiCJqK439aF9cIibuRVpAg_; N_LIB_PRIVATE TNimType NTI__TUrjfNqjKwa5cz9avcZYwsA_; N_LIB_PRIVATE TNimType NTI__QicCB7GN6dWokpZFgUI4JA_; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; static TNimType* Nim_OfCheck_CACHE3[2]; static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; { (*s).calldepth = ((NI16) 0); } } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; { callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__XiYVKq64v3eZDMsUSuphSQ)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); popFrame(); } N_LIB_PRIVATE N_NIMCALL(void, printSpace__qGJls9cgdB4kneGWilyN1tg)(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); popFrame(); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(NIM_BOOL, isObjWithCache)(TNimType* obj, TNimType* subclass, TNimType** cache) { NIM_BOOL result; { result = (NIM_BOOL)0; { if (!(obj == subclass)) goto LA3_; { result = NIM_TRUE; goto BeforeRet_; } } LA3_: ; { if (!((*obj).base == subclass)) goto LA7_; { result = NIM_TRUE; goto BeforeRet_; } } LA7_: ; { if (!(cache[(((NI) 0))- 0] == obj)) goto LA11_; { result = NIM_FALSE; goto BeforeRet_; } } LA11_: ; { if (!(cache[(((NI) 1))- 0] == obj)) goto LA15_; { result = NIM_TRUE; goto BeforeRet_; } } LA15_: ; result = isObjSlowPath__H8B7g6iFRPI5Em52KFoD6w(obj, subclass, cache); goto BeforeRet_; }BeforeRet_: ; return result; } N_LIB_PRIVATE N_NIMCALL(void, printSpace__IFovLOPUgzS7AKF6XRsbmQ)(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA*& c) { nimfr_("printSpace", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); { if (!((c) && ((*c).m_type == (&NTI__QicCB7GN6dWokpZFgUI4JA_)))) goto LA3_; { if (c && !isObj((*c).m_type, (&NTI__QicCB7GN6dWokpZFgUI4JA_))){ raiseObjectConversionError(); } printSpace__qGJls9cgdB4kneGWilyN1tg((*((tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA*&*) (&(c))))); } } goto LA1_; LA3_: ; { if (!((c) && (isObjWithCache((*c).m_type, (&NTI__TUrjfNqjKwa5cz9avcZYwsA_), Nim_OfCheck_CACHE3)))) goto LA6_; { printSpace__XiYVKq64v3eZDMsUSuphSQ(c); } } goto LA1_; LA6_: ; LA1_: ; popFrame(); } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); tempDatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { } } N_LIB_PRIVATE N_NIMCALL(void, tempDatInit000)(void) { static TNimNode TM__h69aKLv9bAieBdiFzvDngbMw_0[2]; NTI__TUrjfNqjKwa5cz9avcZYwsA_.size = sizeof(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA); NTI__TUrjfNqjKwa5cz9avcZYwsA_.align = NIM_ALIGNOF(tyObject_BasecolonObjectType___TUrjfNqjKwa5cz9avcZYwsA); NTI__TUrjfNqjKwa5cz9avcZYwsA_.kind = 17; NTI__TUrjfNqjKwa5cz9avcZYwsA_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_); NTI__TUrjfNqjKwa5cz9avcZYwsA_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[0].kind = 2; NTI__TUrjfNqjKwa5cz9avcZYwsA_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[0]; NTI__QicCB7GN6dWokpZFgUI4JA_.size = sizeof(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA); NTI__QicCB7GN6dWokpZFgUI4JA_.align = NIM_ALIGNOF(tyObject_DerivedcolonObjectType___QicCB7GN6dWokpZFgUI4JA); NTI__QicCB7GN6dWokpZFgUI4JA_.kind = 17; NTI__QicCB7GN6dWokpZFgUI4JA_.base = (&NTI__TUrjfNqjKwa5cz9avcZYwsA_); NTI__QicCB7GN6dWokpZFgUI4JA_.flags = 1; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].len = 0; TM__h69aKLv9bAieBdiFzvDngbMw_0[1].kind = 2; NTI__QicCB7GN6dWokpZFgUI4JA_.node = &TM__h69aKLv9bAieBdiFzvDngbMw_0[1]; } ```

AST

```nim nnkStmtList.newTree( nnkTypeSection.newTree( nnkTypeDef.newTree( nnkPostfix.newTree( newIdentNode("*"), newIdentNode("Base") ), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("RootObj") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newIdentNode("void"), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Base") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ), nnkTypeSection.newTree( nnkTypeDef.newTree( newIdentNode("Derived"), newEmptyNode(), nnkRefTy.newTree( nnkObjectTy.newTree( newEmptyNode(), nnkOfInherit.newTree( newIdentNode("Base") ), newEmptyNode() ) ) ) ), nnkMethodDef.newTree( newIdentNode("printSpace"), newEmptyNode(), newEmptyNode(), nnkFormalParams.newTree( newEmptyNode(), nnkIdentDefs.newTree( newIdentNode("c"), nnkVarTy.newTree( newIdentNode("Derived") ), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkDiscardStmt.newTree( newEmptyNode() ) ) ) ) ```
1.2.0 :+1: OK

Output

Stats

  • Created 2023-07-04T18:40:48Z
  • Started 2023-07-04T18:41:47
  • Finished 2023-07-04T18:41:47
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :+1: OK

Output

Stats

  • Created 2023-07-04T18:40:48Z
  • Started 2023-07-04T18:41:59
  • Finished 2023-07-04T18:42:00
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
#d6e1b5c07 :arrow_right: :bug:

Diagnostics

Clyybber introduced a bug at 2020-04-30 02:01:07 +0200 on commit #d6e1b5c07 with message:

Fix #14160 (#14161)

* Fix #14160

* Add testcase

The bug is in the files:

compiler/ccgexprs.nim
tests/ccgbugs/t14160.nim

The bug can be in the commits:

(Diagnostics sometimes off-by-one).

:robot: Bug found in 35 minutes bisecting 4373 commits at 124 commits per second.

juancarlospaco commented 12 months ago

@github-actions nim cpp

import tables
var tested:Table[string,int]

template `[]`[V](t:Table[string,V],key:string):V =
  echo V
  tables.`[]`(t,key)
discard tested["three"]
github-actions[bot] commented 12 months ago

@juancarlospaco (owner)

devel :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(7, 15) Error: internal error: expr(skType); unknown symbol
No stack traceback available
To create a stacktrace, rerun compilation with './koch temp cpp <file>', see https://nim-lang.github.io/Nim/intern.html#debugging-the-compiler for details

Stats

  • Created 2023-07-04T19:58:05Z
  • Started 2023-07-04T19:58:33
  • Finished 2023-07-04T19:58:33
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( newIdentNode("tables") ), nnkVarSection.newTree( nnkIdentDefs.newTree( newIdentNode("tested"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("int") ), newEmptyNode() ) ), nnkTemplateDef.newTree( nnkAccQuoted.newTree( newIdentNode("[]") ), newEmptyNode(), nnkGenericParams.newTree( nnkIdentDefs.newTree( newIdentNode("V"), newEmptyNode(), newEmptyNode() ) ), nnkFormalParams.newTree( newIdentNode("V"), nnkIdentDefs.newTree( newIdentNode("t"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("V") ), newEmptyNode() ), nnkIdentDefs.newTree( newIdentNode("key"), newIdentNode("string"), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("echo"), newIdentNode("V") ), nnkCall.newTree( nnkDotExpr.newTree( newIdentNode("tables"), nnkAccQuoted.newTree( newIdentNode("[]") ) ), newIdentNode("t"), newIdentNode("key") ) ) ), nnkDiscardStmt.newTree( nnkBracketExpr.newTree( newIdentNode("tested"), newLit("three") ) ) ) ```
stable :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(7, 15) Error: internal error: expr(skType); unknown symbol
No stack traceback available
To create a stacktrace, rerun compilation with './koch temp cpp <file>', see https://nim-lang.github.io/Nim/intern.html#debugging-the-compiler for details

Stats

  • Created 2023-07-04T19:58:05Z
  • Started 2023-07-04T19:58:34
  • Finished 2023-07-04T19:58:34
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( newIdentNode("tables") ), nnkVarSection.newTree( nnkIdentDefs.newTree( newIdentNode("tested"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("int") ), newEmptyNode() ) ), nnkTemplateDef.newTree( nnkAccQuoted.newTree( newIdentNode("[]") ), newEmptyNode(), nnkGenericParams.newTree( nnkIdentDefs.newTree( newIdentNode("V"), newEmptyNode(), newEmptyNode() ) ), nnkFormalParams.newTree( newIdentNode("V"), nnkIdentDefs.newTree( newIdentNode("t"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("V") ), newEmptyNode() ), nnkIdentDefs.newTree( newIdentNode("key"), newIdentNode("string"), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("echo"), newIdentNode("V") ), nnkCall.newTree( nnkDotExpr.newTree( newIdentNode("tables"), nnkAccQuoted.newTree( newIdentNode("[]") ) ), newIdentNode("t"), newIdentNode("key") ) ) ), nnkDiscardStmt.newTree( nnkBracketExpr.newTree( newIdentNode("tested"), newLit("three") ) ) ) ```
1.6.0 :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim(7, 15) Error: internal error: expr(skType); unknown symbol
No stack traceback available
To create a stacktrace, rerun compilation with './koch temp cpp <file>', see https://nim-lang.github.io/Nim/intern.html#debugging-the-compiler for details

Stats

  • Created 2023-07-04T19:58:05Z
  • Started 2023-07-04T19:58:39
  • Finished 2023-07-04T19:58:39
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

```cpp ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( newIdentNode("tables") ), nnkVarSection.newTree( nnkIdentDefs.newTree( newIdentNode("tested"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("int") ), newEmptyNode() ) ), nnkTemplateDef.newTree( nnkAccQuoted.newTree( newIdentNode("[]") ), newEmptyNode(), nnkGenericParams.newTree( nnkIdentDefs.newTree( newIdentNode("V"), newEmptyNode(), newEmptyNode() ) ), nnkFormalParams.newTree( newIdentNode("V"), nnkIdentDefs.newTree( newIdentNode("t"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("V") ), newEmptyNode() ), nnkIdentDefs.newTree( newIdentNode("key"), newIdentNode("string"), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("echo"), newIdentNode("V") ), nnkCall.newTree( nnkDotExpr.newTree( newIdentNode("tables"), nnkAccQuoted.newTree( newIdentNode("[]") ) ), newIdentNode("t"), newIdentNode("key") ) ) ), nnkDiscardStmt.newTree( nnkBracketExpr.newTree( newIdentNode("tested"), newLit("three") ) ) ) ```
1.4.0 :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp
/home/runner/.choosenim/toolchains/nim-1.4.0/lib/pure/collections/tables.nim []
Error: unhandled exception: key not found: three [KeyError]
Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp '

Stats

  • Created 2023-07-04T19:58:05Z
  • Started 2023-07-04T19:58:43
  • Finished 2023-07-04T19:58:44
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ; struct tySequence__pUxI6Ljo6IKKHXKOZkQ7Og; struct TNimType; struct TNimNode; struct NimStringDesc; struct TGenericSeq; struct tyTuple__sr3s7uVHpu9cEbbDnCSg8yQ; struct tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ { tySequence__pUxI6Ljo6IKKHXKOZkQ7Og* data; NI counter; }; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; NI align; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void); struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc : public TGenericSeq { NIM_CHAR data[SEQ_DECL_SIZE]; }; typedef NimStringDesc* tyArray__nHXaesL0DJZHyVS07ARPRA[1]; struct tyTuple__sr3s7uVHpu9cEbbDnCSg8yQ { NI Field0; NimStringDesc* Field1; NI Field2; }; struct tySequence__pUxI6Ljo6IKKHXKOZkQ7Og : TGenericSeq { tyTuple__sr3s7uVHpu9cEbbDnCSg8yQ data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op); static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void); N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc); N_LIB_PRIVATE N_NIMCALL(void, echoBinSafe)(NimStringDesc** args, NI argsLen_0); N_LIB_PRIVATE N_NIMCALL(NI*, X5BX5D___UtkVeTv4Q8MPC5159bNq7dw)(tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ& t, NimStringDesc* key); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, stdlib_tablesDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TNimType NTI__i55W8RrwGKsG9cl0sAKxgkQ_; STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_4, "170141183460469231731687303715884105727", 39); static NIM_CONST tyArray__nHXaesL0DJZHyVS07ARPRA TM__h69aKLv9bAieBdiFzvDngbMw_3 = {((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_4)} ; STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_5, "three", 5); N_LIB_PRIVATE tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ tested__UEZG3zyh2MYot56RUQYWHg; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void) { nimGCvisit((void*)tested__UEZG3zyh2MYot56RUQYWHg.data, 0); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; { (*s).calldepth = ((NI16) 0); } } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) 2000))) goto LA8_; { callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); stdlib_tablesDatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); nimRegisterGlobalMarker(TM__h69aKLv9bAieBdiFzvDngbMw_2); echoBinSafe(TM__h69aKLv9bAieBdiFzvDngbMw_3, 1); (void)((*X5BX5D___UtkVeTv4Q8MPC5159bNq7dw(tested__UEZG3zyh2MYot56RUQYWHg, ((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_5)))); popFrame(); } } ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( newIdentNode("tables") ), nnkVarSection.newTree( nnkIdentDefs.newTree( newIdentNode("tested"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("int") ), newEmptyNode() ) ), nnkTemplateDef.newTree( nnkAccQuoted.newTree( newIdentNode("[]") ), newEmptyNode(), nnkGenericParams.newTree( nnkIdentDefs.newTree( newIdentNode("V"), newEmptyNode(), newEmptyNode() ) ), nnkFormalParams.newTree( newIdentNode("V"), nnkIdentDefs.newTree( newIdentNode("t"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("V") ), newEmptyNode() ), nnkIdentDefs.newTree( newIdentNode("key"), newIdentNode("string"), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("echo"), newIdentNode("V") ), nnkCall.newTree( nnkDotExpr.newTree( newIdentNode("tables"), nnkAccQuoted.newTree( newIdentNode("[]") ) ), newIdentNode("t"), newIdentNode("key") ) ) ), nnkDiscardStmt.newTree( nnkBracketExpr.newTree( newIdentNode("tested"), newLit("three") ) ) ) ```
1.2.0 :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp
/home/runner/.choosenim/toolchains/nim-1.2.0/lib/pure/collections/tables.nim []
Error: unhandled exception: key not found: three [KeyError]
Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp '

Stats

  • Created 2023-07-04T19:58:05Z
  • Started 2023-07-04T19:59:00
  • Finished 2023-07-04T19:59:00
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ; struct tySequence__pUxI6Ljo6IKKHXKOZkQ7Og; struct TNimType; struct TNimNode; struct NimStringDesc; struct TGenericSeq; struct tyTuple__sr3s7uVHpu9cEbbDnCSg8yQ; struct tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ { tySequence__pUxI6Ljo6IKKHXKOZkQ7Og* data; NI counter; }; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void); struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc : public TGenericSeq { NIM_CHAR data[SEQ_DECL_SIZE]; }; typedef NimStringDesc* tyArray__nHXaesL0DJZHyVS07ARPRA[1]; struct tyTuple__sr3s7uVHpu9cEbbDnCSg8yQ { NI Field0; NimStringDesc* Field1; NI Field2; }; struct tySequence__pUxI6Ljo6IKKHXKOZkQ7Og : TGenericSeq { tyTuple__sr3s7uVHpu9cEbbDnCSg8yQ data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op); static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void); N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc); N_LIB_PRIVATE N_NIMCALL(void, echoBinSafe)(NimStringDesc** args, NI argsLen_0); N_LIB_PRIVATE N_NIMCALL(NI*, X5BX5D___UtkVeTv4Q8MPC5159bNq7dw)(tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ& t, NimStringDesc* key); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, stdlib_tablesDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TNimType NTI__i55W8RrwGKsG9cl0sAKxgkQ_; STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_4, "170141183460469231731687303715884105727", 39); static NIM_CONST tyArray__nHXaesL0DJZHyVS07ARPRA TM__h69aKLv9bAieBdiFzvDngbMw_3 = {((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_4)} ; STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_5, "three", 5); N_LIB_PRIVATE tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ tested__UEZG3zyh2MYot56RUQYWHg; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void) { nimGCvisit((void*)tested__UEZG3zyh2MYot56RUQYWHg.data, 0); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; { (*s).calldepth = ((NI16) 0); } } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; { callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); stdlib_tablesDatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); nimRegisterGlobalMarker(TM__h69aKLv9bAieBdiFzvDngbMw_2); echoBinSafe(TM__h69aKLv9bAieBdiFzvDngbMw_3, 1); (void)((*X5BX5D___UtkVeTv4Q8MPC5159bNq7dw(tested__UEZG3zyh2MYot56RUQYWHg, ((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_5)))); popFrame(); } } ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( newIdentNode("tables") ), nnkVarSection.newTree( nnkIdentDefs.newTree( newIdentNode("tested"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("int") ), newEmptyNode() ) ), nnkTemplateDef.newTree( nnkAccQuoted.newTree( newIdentNode("[]") ), newEmptyNode(), nnkGenericParams.newTree( nnkIdentDefs.newTree( newIdentNode("V"), newEmptyNode(), newEmptyNode() ) ), nnkFormalParams.newTree( newIdentNode("V"), nnkIdentDefs.newTree( newIdentNode("t"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("V") ), newEmptyNode() ), nnkIdentDefs.newTree( newIdentNode("key"), newIdentNode("string"), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("echo"), newIdentNode("V") ), nnkCall.newTree( nnkDotExpr.newTree( newIdentNode("tables"), nnkAccQuoted.newTree( newIdentNode("[]") ) ), newIdentNode("t"), newIdentNode("key") ) ) ), nnkDiscardStmt.newTree( nnkBracketExpr.newTree( newIdentNode("tested"), newLit("three") ) ) ) ```
1.0.0 :-1: FAIL

Output

Error: Command failed: nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim temp
/home/runner/.choosenim/toolchains/nim-1.0.0/lib/pure/collections/tables.nim []
Error: unhandled exception: key not found: three [KeyError]
Error: execution of an external program failed: '/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp '

Stats

  • Created 2023-07-04T19:58:05Z
  • Started 2023-07-04T19:59:13
  • Finished 2023-07-04T19:59:14
  • Duration 1 minute
  • Commands nim cpp --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim

IR

```cpp #define NIM_INTBITS 64 #include "nimbase.h" #undef LANGUAGE_C #undef MIPSEB #undef MIPSEL #undef PPC #undef R3000 #undef R4000 #undef i386 #undef linux #undef mips #undef near #undef far #undef powerpc #undef unix # define nimfr_(proc, file) \ TFrame FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = 0; nimFrame(&FR_); # define nimfrs_(proc, file, slots, length) \ struct {TFrame* prev;NCSTRING procname;NI line;NCSTRING filename; NI len; VarSlot s[slots];} FR_; \ FR_.procname = proc; FR_.filename = file; FR_.line = 0; FR_.len = length; nimFrame((TFrame*)&FR_); # define nimln_(n, file) \ FR_.line = n; FR_.filename = file; struct tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ; struct tySequence__pUxI6Ljo6IKKHXKOZkQ7Og; struct TNimType; struct TNimNode; struct NimStringDesc; struct TGenericSeq; struct tyTuple__sr3s7uVHpu9cEbbDnCSg8yQ; struct tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ { tySequence__pUxI6Ljo6IKKHXKOZkQ7Og* data; NI counter; }; typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A; typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ; typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op); typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p); struct TNimType { NI size; tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind; tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags; TNimType* base; TNimNode* node; void* finalizer; tyProc__ojoeKfW4VYIm36I9cpDTQIg marker; tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy; }; typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ; struct TNimNode { tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind; NI offset; TNimType* typ; NCSTRING name; NI len; TNimNode** sons; }; typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void); struct TGenericSeq { NI len; NI reserved; }; struct NimStringDesc : public TGenericSeq { NIM_CHAR data[SEQ_DECL_SIZE]; }; typedef NimStringDesc* tyArray__nHXaesL0DJZHyVS07ARPRA[1]; struct tyTuple__sr3s7uVHpu9cEbbDnCSg8yQ { NI Field0; NimStringDesc* Field1; NI Field2; }; struct tySequence__pUxI6Ljo6IKKHXKOZkQ7Og : TGenericSeq { tyTuple__sr3s7uVHpu9cEbbDnCSg8yQ data[SEQ_DECL_SIZE]; }; N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op); static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void); N_LIB_PRIVATE N_NIMCALL(void, nimRegisterGlobalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc); N_LIB_PRIVATE N_NIMCALL(void, echoBinSafe)(NimStringDesc** args, NI argsLen_0); N_LIB_PRIVATE N_NIMCALL(NI*, X5BX5D___UtkVeTv4Q8MPC5159bNq7dw)(tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ& t, NimStringDesc* key); static N_INLINE(void, initStackBottomWith)(void* locals); N_LIB_PRIVATE N_NOINLINE(void, nimGC_setStackBottom)(void* theStackBottom); static N_INLINE(void, nimFrame)(TFrame* s); N_LIB_PRIVATE N_NOINLINE(void, callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw)(void); static N_INLINE(void, popFrame)(void); N_LIB_PRIVATE N_NIMCALL(void, systemDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, systemInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, stdlib_tablesDatInit000)(void); N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void); extern TNimType NTI__i55W8RrwGKsG9cl0sAKxgkQ_; STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_4, "170141183460469231731687303715884105727", 39); static NIM_CONST tyArray__nHXaesL0DJZHyVS07ARPRA TM__h69aKLv9bAieBdiFzvDngbMw_3 = {((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_4)} ; STRING_LITERAL(TM__h69aKLv9bAieBdiFzvDngbMw_5, "three", 5); N_LIB_PRIVATE tyObject_Table__i55W8RrwGKsG9cl0sAKxgkQ tested__UEZG3zyh2MYot56RUQYWHg; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; extern TFrame* framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; static N_NIMCALL(void, TM__h69aKLv9bAieBdiFzvDngbMw_2)(void) { nimGCvisit((void*)tested__UEZG3zyh2MYot56RUQYWHg.data, 0); } static N_INLINE(void, initStackBottomWith)(void* locals) { nimGC_setStackBottom(locals); } static N_INLINE(void, nimFrame)(TFrame* s) { { if (!(framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw == NIM_NIL)) goto LA3_; { (*s).calldepth = ((NI16) 0); } } goto LA1_; LA3_: ; { (*s).calldepth = (NI16)((*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).calldepth + ((NI16) 1)); } LA1_: ; (*s).prev = framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw; framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = s; { if (!((*s).calldepth == ((NI16) (((NI) 2000))))) goto LA8_; { callDepthLimitReached__mMRdr4sgmnykA9aWeM9aDZlw(); } } LA8_: ; } static N_INLINE(void, popFrame)(void) { framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw = (*framePtr__HRfVMH3jYeBJz6Q6X9b6Ptw).prev; } N_LIB_PRIVATE void PreMainInner(void) { } N_LIB_PRIVATE int cmdCount; N_LIB_PRIVATE char** cmdLine; N_LIB_PRIVATE char** gEnv; N_LIB_PRIVATE void PreMain(void) { void (*volatile inner)(void); inner = PreMainInner; systemDatInit000(); initStackBottomWith((void *)&inner); systemInit000(); stdlib_tablesDatInit000(); (*inner)(); } N_LIB_PRIVATE N_CDECL(void, NimMainInner)(void) { NimMainModule(); } N_CDECL(void, NimMain)(void) { void (*volatile inner)(void); PreMain(); inner = NimMainInner; initStackBottomWith((void *)&inner); (*inner)(); } int main(int argc, char** args, char** env) { cmdLine = args; cmdCount = argc; gEnv = env; NimMain(); return nim_program_result; } N_LIB_PRIVATE N_NIMCALL(void, NimMainModule)(void) { { nimfr_("temp", "/home/runner/work/nimrun-action-minefield/nimrun-action-minefie" "ld/temp.nim"); nimRegisterGlobalMarker(TM__h69aKLv9bAieBdiFzvDngbMw_2); echoBinSafe(TM__h69aKLv9bAieBdiFzvDngbMw_3, 1); (void)((*X5BX5D___UtkVeTv4Q8MPC5159bNq7dw(tested__UEZG3zyh2MYot56RUQYWHg, ((NimStringDesc*) &TM__h69aKLv9bAieBdiFzvDngbMw_5)))); popFrame(); } } ```

AST

```nim nnkStmtList.newTree( nnkImportStmt.newTree( newIdentNode("tables") ), nnkVarSection.newTree( nnkIdentDefs.newTree( newIdentNode("tested"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("int") ), newEmptyNode() ) ), nnkTemplateDef.newTree( nnkAccQuoted.newTree( newIdentNode("[]") ), newEmptyNode(), nnkGenericParams.newTree( nnkIdentDefs.newTree( newIdentNode("V"), newEmptyNode(), newEmptyNode() ) ), nnkFormalParams.newTree( newIdentNode("V"), nnkIdentDefs.newTree( newIdentNode("t"), nnkBracketExpr.newTree( newIdentNode("Table"), newIdentNode("string"), newIdentNode("V") ), newEmptyNode() ), nnkIdentDefs.newTree( newIdentNode("key"), newIdentNode("string"), newEmptyNode() ) ), newEmptyNode(), newEmptyNode(), nnkStmtList.newTree( nnkCommand.newTree( newIdentNode("echo"), newIdentNode("V") ), nnkCall.newTree( nnkDotExpr.newTree( newIdentNode("tables"), nnkAccQuoted.newTree( newIdentNode("[]") ) ), newIdentNode("t"), newIdentNode("key") ) ) ), nnkDiscardStmt.newTree( nnkBracketExpr.newTree( newIdentNode("tested"), newLit("three") ) ) ) ```
:robot: Bug found in 45 minutes bisecting 6 commits at 0 commits per second.
juancarlospaco commented 12 months ago

!nim c

type Base* = ref object of RootObj
method printSpace(c: var Base): void = discard
type Derived = ref object of Base
method printSpace(c: var Derived) = discard
juancarlospaco commented 12 months ago

!nim c

type Base* = ref object of RootObj
method printSpace(c: var Base): void = discard
type Derived = ref object of Base
method printSpace(c: var Derived) = discard
github-actions[bot] commented 12 months ago

@juancarlospaco (owner)

devel :+1: OK

Output

Stats

  • Created 2023-07-04T20:16:28Z
  • Started 2023-07-04T20:17:02
  • Finished 2023-07-04T20:17:03
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
stable :+1: OK

Output

Stats

  • Created 2023-07-04T20:16:28Z
  • Started 2023-07-04T20:17:04
  • Finished 2023-07-04T20:17:04
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.6.0 :+1: OK

Output

Stats

  • Created 2023-07-04T20:16:28Z
  • Started 2023-07-04T20:17:07
  • Finished 2023-07-04T20:17:08
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.4.0 :+1: OK

Output

Stats

  • Created 2023-07-04T20:16:28Z
  • Started 2023-07-04T20:17:12
  • Finished 2023-07-04T20:17:13
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.2.0 :+1: OK

Output

Stats

  • Created 2023-07-04T20:16:28Z
  • Started 2023-07-04T20:17:28
  • Finished 2023-07-04T20:17:29
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :+1: OK

Output

Stats

  • Created 2023-07-04T20:16:28Z
  • Started 2023-07-04T20:17:44
  • Finished 2023-07-04T20:17:45
  • Duration 1 minute
  • Commands nim c --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
:robot: Bug found in 46 minutes bisecting 6 commits at 0 commits per second.
juancarlospaco commented 12 months ago

!nim js

type Base* = ref object of RootObj
method printSpace(c: var Base): void = discard
type Derived = ref object of Base
method printSpace(c: var Derived) = discard
github-actions[bot] commented 12 months ago

@juancarlospaco (owner)

devel :+1: OK

Output

Stats

  • Created 2023-07-04T20:26:50Z
  • Started 2023-07-04T20:27:19
  • Finished 2023-07-04T20:27:19
  • Duration now
  • Commands nim js -d:nodejs --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
stable :+1: OK

Output

Stats

  • Created 2023-07-04T20:26:50Z
  • Started 2023-07-04T20:27:20
  • Finished 2023-07-04T20:27:20
  • Duration now
  • Commands nim js -d:nodejs --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.6.0 :+1: OK

Output

Stats

  • Created 2023-07-04T20:26:50Z
  • Started 2023-07-04T20:27:23
  • Finished 2023-07-04T20:27:23
  • Duration now
  • Commands nim js -d:nodejs --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.4.0 :+1: OK

Output

Stats

  • Created 2023-07-04T20:26:50Z
  • Started 2023-07-04T20:27:26
  • Finished 2023-07-04T20:27:26
  • Duration now
  • Commands nim js -d:nodejs --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.2.0 :+1: OK

Output

Stats

  • Created 2023-07-04T20:26:50Z
  • Started 2023-07-04T20:27:43
  • Finished 2023-07-04T20:27:43
  • Duration now
  • Commands nim js -d:nodejs --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
1.0.0 :+1: OK

Output

Stats

  • Created 2023-07-04T20:26:50Z
  • Started 2023-07-04T20:27:53
  • Finished 2023-07-04T20:27:53
  • Duration now
  • Commands nim js -d:nodejs --run -d:strip -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --threads:off --verbosity:0 --hints:off --warnings:off --lineTrace:off --nimcache:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield --out:/home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp /home/runner/work/nimrun-action-minefield/nimrun-action-minefield/temp.nim
:robot: Bug found in 38 minutes bisecting 6 commits at 0 commits per second.