summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* fixes #22049; fixes #22054; implicit conversion keeps varness (#22097)ringabout2023-06-161-1/+7
| | | | | | | | | | | | | | | | | | | | | * fixes #22054; codegen for var tuples conv * rethink fixes * add test cases * templates only * fixes var tuples * keep varness no matter what * fixes typ.isNil * make it work for generics * restore isSubrange * add a test case as requested
* fixes #19607 (#21576)Andreas Rumpf2023-06-161-11/+17
|
* consider object types as declarative in templates (#22106)metagn2023-06-161-13/+36
| | | | | | | | | * consider object types as declarative in templates fixes #16005 * correct logic for nkRecList children, inject fields * don't actually inject fields
* fixes ilegal recursion (#22105)Juan M Gómez2023-06-161-1/+3
|
* adds another pass for sets fixes #6259 (#22099)Juan M Gómez2023-06-152-2/+4
| | | | | | | * adds another pass for sets fixes #6259 * Update tsets.nim removes extra `#`
* fixes explicit deref block (#22093)ringabout2023-06-152-3/+3
| | | fixes explicit deref
* Allows for arbitrary ordering of inheritance in type section #6259 (#22070)Juan M Gómez2023-06-153-5/+10
| | | | | | | | | | | | | * Allows for arbitrary ordering of inheritance in type section #6259 * prevents ilegal recursion * fixes ilegal recursion. Test passes with a better message * Apply suggestions from code review --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix calls in generic bodies, delay typecheck when no overloads match (#22029)metagn2023-06-137-32/+59
| | | | | | | | | | | | | | | | | | | | | | | * sacrifice "tgenericshardcases" for working statics * legacy switch for CI, maybe experimental later * convert to experimental * apparently untyped needs the experimental switch * try special case call semcheck * try fix * fix compilation * final cleanup, not experimental, make `when` work * remove last needed use of untyped * fix unused warning in test * remove untyped feature
* fixes #22065; do not search path for relative imports (#22073)ringabout2023-06-131-1/+6
| | | | | | | | | | | | | | | | | | | * fixes #22065; do not search path for "./" * simplify * fixes * fixes * allow ".." * cleanup * add a test case * slightly modify the import * adds a changelog
* strictly typecheck expressions in bracketed `emit` (#22074)metagn2023-06-133-1/+3
| | | | | * strictly typecheck expressions in bracketed `emit` * use nim check in test
* fixes #22058; invalid free with {.noSideEffect.} in template (#22088)ringabout2023-06-131-20/+19
|
* clean up nimfix leftover (#22087)ringabout2023-06-131-3/+0
|
* fix dot calls with resolved symbols in templates (#22076)metagn2023-06-123-2/+10
| | | | | | | | | | | | | * fix dot calls with resolved symbols in templates * make old code work * fix custom number literals test * remove leftover debug marker * enable "bug 9" test too * fix renderer, add test for #7085
* make binary `not` not parse complex expressions on right side (#22078)metagn2023-06-121-4/+4
| | | | | | | * binary `not` only parses simple expressions fixes #16324 * switch to primary
* make borrow `.` work with aliases if not overriden (#22072)metagn2023-06-111-3/+8
|
* Atlas: now in its own repository (#22066)Andreas Rumpf2023-06-101-1/+0
| | | | | * Atlas: now in its own repository * progress
* Remove Deprecated Nimfix (#22062)Juan Carlos2023-06-1012-209/+16
| | | | * Remove Deprecated Nimfix * Trailing whitespace cleanups
* make `move` use `=wasMoved` internally (#22032)ringabout2023-06-093-6/+16
| | | | | | | | | | | | | * make `move` use `=wasMoved` internally * fixes tests * fixes spawn finally * fixes views * rename to internalMove * add a test case
* clean up isNilConversion for seqs, strings (#22057)ringabout2023-06-091-7/+1
|
* Fix: don't track Defect in proc effect compatibility (#22037)Tanguy2023-06-081-1/+14
|
* allow addressing elements of openArray[char] in VM (#22045)ringabout2023-06-081-0/+2
| | | allow addressing elements of openArray[char]
* fixes {.global.} ref typedesc regressions (#22046)ringabout2023-06-081-0/+1
|
* fixes overriden typo (#22044)ringabout2023-06-088-31/+31
|
* Improve compiler messages (#22040)Juan Carlos2023-06-081-1/+1
| | | * Improve compiler messages
* adds `rkInt` to the `opcCastPtrToInt` op (#22039)Juan M Gómez2023-06-081-0/+2
| | | adds rkInt to the opcCastPtrToInt op
* fixes #21995: align C++ with C backend behavior for empty raise state… ↵heterodoxic2023-06-071-5/+1
| | | | | | | (#21998) * fixes #21995: align C with C++ backend behavior for empty raise statements * make runtime behavior match across both C and C++ backend and all exception modes
* fixes #21989; lift `=dup` from a custom `=copy` for objects to keep backward ↵ringabout2023-06-071-1/+10
| | | | | | | | | | | | | compatibilities (#22009) * fixes #21989; optimize `=dup` iff it is overridden * remove owned * fixes refs * lift destructors * lift dup
* retain forced open undeclared ident information (#22019)metagn2023-06-072-5/+4
|
* Improve compiler messages (#22028)Juan Carlos2023-06-071-3/+2
| | | * Improve compiler messages with simpler code
* make runnableExamples a special word (#22024)metagn2023-06-064-7/+7
| | | | | * make runnableExamples a special word * fix imports
* post expr blocks colon fix + correct grammar (#21983)metagn2023-06-061-12/+16
| | | | | | | | | | | | | | | * post expr blocks colon fix + correct grammar fixes #21982 * fix dochelpers * this is remarkably common * use head for unchained * fix atlas * final grammar fix
* properly disallow unresolved generic proc values (#22005)metagn2023-06-052-2/+13
| | | | | | | * properly disallow unresolved generic proc values * mirrors semoperand * shallow efTypeAllowed, add back special case
* infer error for `=dup` if there is a custom `=copy` error hook (#22004)ringabout2023-06-051-1/+10
|
* Remove unused astago import warning from vm.nim (#22003)Miguel Madrid-Mencía2023-06-041-1/+0
|
* Fix typo in installer.ini (#22002)Miguel Madrid-Mencía2023-06-041-1/+1
|
* fixes nightlies regression caused by atlas moving out of the tools dir (#21999)ringabout2023-06-041-0/+1
| | | fixes nightlies caused by atlas moving out of the tools dir
* shallow fix for #21972, #18552 by moving std::exception_ptr to the parent ↵heterodoxic2023-06-041-3/+2
| | | | | sco… (#21988) shallow fix for #21972 by moving std::exception_ptr to the parent scope, minor cleanup
* fixes #21987; don't create type bound ops for anything in a function with a ↵ringabout2023-06-041-1/+4
| | | | | | | `nodestroy` pragma (#21992) * fixes #21987; don't create type bound ops for anything in a function with a `nodestroy` pragma * add a comment
* lift the `=dup` hook (#21903)ringabout2023-06-024-53/+113
| | | | | | * fixes tests again * remove helper functions * fixes closures, owned refs * final cleanup
* partially fixes #20787 by having a char dummy member prepended to objs only ↵heterodoxic2023-06-011-2/+9
| | | | | containing an UncheckedArray (i.e. C FAM) (#21979) partial fix for #20787
* fixes #21974; fixes sameConstant fieldDefect (#21981)ringabout2023-06-011-1/+1
| | | | | * fixes #21974; fixes sameConstant fieldDefect * add a test case
* privateAccess ignores non-objects (#21973)metagn2023-06-013-2/+5
| | | closes #21969
* removal of seq spam in generated C/C++ code and Module.typeStack cleanup ↵heterodoxic2023-05-311-13/+8
| | | | | | | (#21964) * WIP: removal of seq spam in generated C/C++ output and Module.typeStack cleanup * removal of seq spam in generated C/C++ output and Module.typeStack cleanup
* Implements: [C++] constructor pragma improvement (fix #21921) (#21916)Juan M Gómez2023-05-306-78/+143
| | | | | | | | | | | | | | | * implements: [C++] constructor pragma improvement (fix #21921) t * fix test so it doesnt use echo in globals * Update compiler/ccgtypes.nim * Update lib/std/private/dragonbox.nim --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* make `proc` not implicitly convert to `pointer` with a preview define (#21953)metagn2023-05-302-1/+5
| | | | | | | | | * test `proc` not converting to `pointer` * ignore define for now to test * remove cstring * fixes, changelog
* simple micro-optimizations of ropes' runtime-formatting (#21962)heterodoxic2023-05-302-15/+8
|
* hot code reloading: fix regression? and PreMain with arc/orc (#21940)metagn2023-05-302-7/+12
| | | | | * fix PreMain for hot code reloading with arc/orc * fix regression? actually test nimhcr_basic
* fixes fieldDefect loses enum type info in ORC; consistent with VM and refc ↵ringabout2023-05-291-10/+13
| | | | | (#21954) fixes fieldDefect loses enum type info in ORC
* prevent spamming of thread local forward declarations in C/C++ output (#21955)heterodoxic2023-05-291-1/+1
|
* ship atlas and build documentation (#21945)ringabout2023-05-281-0/+1
| | | | | * ship atlas and build documentation * move atlas.md and link it in tools' index