diff options
author | cooldome <cdome@bk.ru> | 2020-03-19 19:38:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-19 20:38:25 +0100 |
commit | b3176b881744242b6c0041024a46a17c7b73c788 (patch) | |
tree | d18d660c08efb53bea1022d212fed5619032bb26 /compiler/cgen.nim | |
parent | 034dad8e321edcf6cf88a2ad93fceafae267cc74 (diff) | |
download | Nim-b3176b881744242b6c0041024a46a17c7b73c788.tar.gz |
Attempt to finish off araq cpp exceptions (#13695)
* config update * disable a questionable test * remove c++ exception handling IDs, new impl doesn't require it anymore * C++ based exceptions finally work * fixes bootstrapping problem in C++ mode * teach GCC it's 2020 now * more bugfixes for C++ based exception handling * apply cooldome's patch * another attempt to enable C++11 * bug fix Co-authored-by: Araq <rumpf_a@web.de> Co-authored-by: cooldome <ariabushenko@bk.ru>
Diffstat (limited to 'compiler/cgen.nim')
-rw-r--r-- | compiler/cgen.nim | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 216f6ba68..66677e458 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -343,11 +343,6 @@ type proc genObjectInit(p: BProc, section: TCProcSection, t: PType, a: var TLoc, mode: ObjConstrMode) = - if p.module.compileToCpp and t.isException and p.config.exc == excCpp: - # init vtable in Exception object for polymorphic exceptions - includeHeader(p.module, "<new>") - linefmt(p, section, "new ($1) $2;$n", [rdLoc(a), getTypeDesc(p.module, t)]) - #if optNimV2 in p.config.globalOptions: return case analyseObjectWithTypeField(t) of frNone: |