Skip to content

Commit

Permalink
fix #17351
Browse files Browse the repository at this point in the history
  • Loading branch information
cooldome committed Mar 14, 2021
1 parent e922d73 commit 56fe765
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/extccomp.nim
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ compiler gcc:
asmStmtFrmt: "asm($1);$n",
structStmtFmt: "$1 $3 $2 ", # struct|union [packed] $name
produceAsm: gnuAsmListing,
cppXsupport: "-std=gnu++14 -funsigned-char",
cppXsupport: "-std=gnu++17 -funsigned-char",
props: {hasSwitchRange, hasComputedGoto, hasCpp, hasGcGuard, hasGnuAsm,
hasAttribute})

Expand All @@ -113,7 +113,7 @@ compiler nintendoSwitchGCC:
asmStmtFrmt: "asm($1);$n",
structStmtFmt: "$1 $3 $2 ", # struct|union [packed] $name
produceAsm: gnuAsmListing,
cppXsupport: "-std=gnu++14 -funsigned-char",
cppXsupport: "-std=gnu++17 -funsigned-char",
props: {hasSwitchRange, hasComputedGoto, hasCpp, hasGcGuard, hasGnuAsm,
hasAttribute})

Expand Down
10 changes: 10 additions & 0 deletions tests/arc/texceptions.nim
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,13 @@ block: # issue #13071
a = e.msg & $e.name # was segfaulting here for `nim cpp --gc:arc`
doAssert a == "foo:MyExcept"
fun()


block: # issue #17351
type
Foo {.inheritable.} = object
Foo2 = object of Foo
Bar = object
x: Foo2

var b = Bar()

0 comments on commit 56fe765

Please sign in to comment.