On 14-Apr-2021 04:54, Bram Moolenaar wrote:
Patch 8.2.2759
Problem:    Vim9: for loop infers type of loop variable.
Solution:   Do not get the member type. (closes #8102)
Files:      src/vim9type.c, src/proto/vim9type.pro, src/list.c,
             src/vim9script.c, src/proto/vim9script.pro, src/vim.h,
             src/testdir/test_vim9_script.vim


After this patch mingw64 (gcc 10.3.0) spits out this error:
<snip>
gcc -c -I. -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 -DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -D__USE_MINGW_ANSI_STDIO -pipe -march=native -Wall -O3 -fomit-frame-pointer -freg-struct-return -fpie -fPIE  evalvars.c -o objnative/evalvars.o
evalvars.c: In function 'set_var_const':
evalvars.c:3258:3: error: too few arguments to function 'update_vim9_script_var'
 3258 |   update_vim9_script_var(FALSE, di, flags, tv, &type);
      |   ^~~~~~~~~~~~~~~~~~~~~~
In file included from proto.h:236,
                 from vim.h:2165,
                 from evalvars.c:14:
proto/vim9script.pro:15:6: note: declared here
   15 | void update_vim9_script_var(int create, dictitem_T *di, int flags, typval_T *tv, type_T **type, int do_member);
      |      ^~~~~~~~~~~~~~~~~~~~~~
evalvars.c:3356:6: error: too few arguments to function 'update_vim9_script_var'
 3356 |      update_vim9_script_var(TRUE, di, flags, tv, &type);
      |      ^~~~~~~~~~~~~~~~~~~~~~
In file included from proto.h:236,
                 from vim.h:2165,
                 from evalvars.c:14:
proto/vim9script.pro:15:6: note: declared here
   15 | void update_vim9_script_var(int create, dictitem_T *di, int flags, typval_T *tv, type_T **type, int do_member);
      |      ^~~~~~~~~~~~~~~~~~~~~~
make: *** [Make_cyg_ming.mak:1145: objnative/evalvars.o] Error 1
</snip>

Cheers
John

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/0c4d0031-433a-f1f9-1225-3314cc24a437%40internode.on.net.

Raspunde prin e-mail lui