Re: Question regarding usage of vec.h

2020-08-03 Thread Thomas Koenig via Gcc
Hi Chung-Lin, I think you need to initialize the 'vec extrema' field with vNULL, or maybe some other constructor. Thanks, I'll give it a try. Regards Thomas

Re: Question regarding usage of vec.h

2020-08-03 Thread Chung-Lin Tang
On 2020/8/3 12:24 AM, Thomas Koenig via Gcc wrote: Hi, in a patch I am developing, I have the following code: typedef struct {   gfc_code *c;   int branch_level;   bool seen_goto;   vec extrema; } do_t; static vec doloop_list; [...]   do_t loop;   doloop_list.safe_push (loop);