Commit graph

3,428 commits

Author SHA1 Message Date
LemonBoy
334032294f Fix linking issue in cpp codegen
Declare the root symbol only once and have the other modules depending
on it emit an `extern` declaration.

Fixes #9013
2018-09-19 12:46:50 +02:00
LemonBoy
a27429304e Convert *_family fields to cushort
Fixes #9008
2018-09-19 12:33:11 +02:00
Andreas Rumpf
34f0b91104 attempt to make travis green for 'koch testinstall' 2018-09-18 17:25:27 +02:00
Andreas Rumpf
7ee6774fb7 travis: run 'koch testinstall' on OSX 2018-09-18 15:27:54 +02:00
Andreas Rumpf
a5d014233a
Merge pull request #8996 from LemonBoy/fix-2574
The VM cannot call methods
2018-09-18 10:29:49 +02:00
Andreas Rumpf
aa2d219afe
Merge pull request #8995 from LemonBoy/fix-4952
Fix error during field access in VM
2018-09-18 09:38:28 +02:00
Andreas Rumpf
597acad507
Merge pull request #8937 from Vindaar/fixes-8925
fix #8925 by using `getTypeInst` instead of `getType`
2018-09-18 09:37:39 +02:00
Andreas Rumpf
c661f8e1be
Merge pull request #8983 from cooldome/codegen_crash
Fixes 8979
2018-09-18 09:36:16 +02:00
Andreas Rumpf
9c6dde1b70
Merge pull request #8990 from LemonBoy/fix-8259
Always check the deduced type validity for result
2018-09-17 22:45:12 +02:00
Zahary Karadjov
95072fbcc3 Bugfix: custom pragmas were not working on public fields 2018-09-17 22:17:39 +03:00
Vindaar
72a65c43a7 add test case 2018-09-17 19:56:42 +02:00
LemonBoy
c2e5faf959 The VM cannot call methods
Fixes #2574
2018-09-17 19:14:13 +02:00
LemonBoy
027cc5013e Fix error during field access in VM
Tuple constructors can't have nkExprColonExpr but may contain NimNodes
of that kind.

Fixes #4952
2018-09-17 18:52:40 +02:00
LemonBoy
3588240226 Always check the deduced type validity for result
Fixes #8259
2018-09-17 15:33:44 +02:00
Andrii Riabushenko
acaf2b8e76 Fixes 8979 2018-09-16 21:33:21 +01:00
Andreas Rumpf
550806aba4
Merge pull request #8968 from genotrance/test-6434
Test case for #6434
2018-09-16 21:44:41 +02:00
Andreas Rumpf
c554c2a581 closes #3837 2018-09-16 21:37:11 +02:00
Ganesh Viswanathan
9b4305c359 Remove duplicate 2018-09-16 05:44:37 -05:00
Andreas Rumpf
0330fb2e13 fixes #8911 2018-09-16 12:28:43 +02:00
Andreas Rumpf
501f6c8020
Merge pull request #8970 from genotrance/test-7010
Test case for #7010
2018-09-16 11:39:27 +02:00
Ganesh Viswanathan
9fc0a9ad42 Merge remote-tracking branch 'upstream/devel' into test-7010 2018-09-15 14:33:47 -05:00
Ganesh Viswanathan
ae8e907edb Merge remote-tracking branch 'upstream/devel' into test-6483 2018-09-15 14:33:33 -05:00
Ganesh Viswanathan
e4fa1c81cb Merge remote-tracking branch 'upstream/devel' into test-6434 2018-09-15 14:33:15 -05:00
Andreas Rumpf
4342b79a3c
Merge pull request #8971 from LemonBoy/fix-8967
Fix codegen for set[T] parameters
2018-09-15 12:55:23 +02:00
Araq
4c34787107 make async test more reliable 2018-09-15 12:21:01 +02:00
LemonBoy
6af6ca6351 Fix codegen for set[T] parameters
Sometimes sets are materialized as arrays and we must treat them as
such: the CPP backend is pickier than the C one and would sometimes
produce invalid code.

Fixes #8967
2018-09-15 11:55:11 +02:00
Araq
e4902a4a35 make tfailedassert_stacktrace.nim more robust 2018-09-15 10:06:02 +02:00
Ganesh Viswanathan
b966945ab2 Move 2018-09-14 18:51:05 -05:00
Ganesh Viswanathan
31860f560e Merge remote-tracking branch 'upstream/devel' into test-6434 2018-09-14 18:44:54 -05:00
Ganesh Viswanathan
80520eef3c Merge remote-tracking branch 'upstream/devel' into test-6483 2018-09-14 18:34:56 -05:00
Ganesh Viswanathan
9340885251 Merge remote-tracking branch 'upstream/devel' into test-7010 2018-09-14 18:34:12 -05:00
Andreas Rumpf
5fa4fa185b
Merge pull request #8875 from awr1/experimentalize-reorder
Experimentalize reorder (Changes {.reorder: on.} to {.experimental: "codeReordering".})
2018-09-15 00:36:57 +02:00
Andreas Rumpf
0c04b80651
Merge pull request #8966 from LemonBoy/fix-8964
Fix hashing for codegenProc (sic) types
2018-09-14 22:28:12 +02:00
Araq
9995f50050 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2018-09-14 22:17:27 +02:00
Ganesh Viswanathan
4e305c3040 Test case for #7010 2018-09-14 14:07:31 -05:00
Ganesh Viswanathan
e07a256f74 Test case for #6483 2018-09-14 14:04:32 -05:00
Ganesh Viswanathan
71ce2ddf83 Test case for #6434 2018-09-14 13:12:04 -05:00
Araq
fba9c2aef6 make tests green again 2018-09-14 20:10:46 +02:00
genotrance
7af659cf59 Test case for #6163 (#8960)
* Test case for #6163
2018-09-14 17:09:16 +02:00
Araq
5709736e82 Merge branch 'devel' into araq-better-docgen 2018-09-14 15:48:07 +02:00
Araq
5ee904643a fixes #8883 2018-09-14 15:47:37 +02:00
LemonBoy
839953c3e1 Fix hashing for codegenProc (sic) types
Since the name mangling is inhibited we should take the user-supplied
name during the sighash computation.

Fixes #8964
2018-09-14 15:37:51 +02:00
Araq
4ab9953787 fixes #8961 2018-09-14 11:40:43 +02:00
Araq
d2208091fa disable Nimble dependencies for appveyor 2018-09-14 09:45:03 +02:00
Ganesh Viswanathan
f4356d6115 Fix system.nim line number test case failure 2018-09-12 12:58:50 -05:00
Ganesh Viswanathan
9b2115558b Test cases for #6969 #7346 #7581 2018-09-12 12:00:01 -05:00
Andreas Rumpf
8f046792cf
Merge pull request #8941 from timotheecour/pr_fix_8928
fix #8928 regression
2018-09-12 10:28:57 +02:00
Andreas Rumpf
132eb31e32
Merge pull request #8949 from nim-lang/araq-for-loop-expressions
For loop expressions
2018-09-12 10:27:54 +02:00
LemonBoy
b195204549 Fix add(string, cstring) when the lhs is null (#8951) 2018-09-12 10:10:00 +02:00
LemonBoy
87955eaf30 Fix concat behaviour for uninitialized strings (#8950) 2018-09-11 23:35:21 +02:00