GCC 4.6 fails on types_used_by_cur_var_decl

Ricky Huang rhuang.work at gmail.com
Wed Dec 18 17:10:51 UTC 2013


On Dec 17, 2013, at 12:18 PM, Ricky Huang <rhuang.work at gmail.com> wrote:

> […]
> 
> Is this the case where types_used_by_cur_var_decl was not extern declared somewhere else (probably in its header)?
> 
> […]

Seeing types_used_by_cur_var_decl is declared in function.h, I did an #include in the complaining file c-common.c.  Now it has different compiler complains:

.././../gcc-4.6.4/gcc/c-family/c-gimplify.c:102:17: error: incomplete definition of type
      'struct cgraph_node'
  for (cgn = cgn->nested; cgn ; cgn = cgn->next_nested)
             ~~~^
.././../gcc-4.6.4/gcc/tree-inline.h:53:10: note: forward declaration of 'struct cgraph_node'
  struct cgraph_node *src_node;
         ^
.././../gcc-4.6.4/gcc/c-family/c-gimplify.c:102:42: error: incomplete definition of type
      'struct cgraph_node'
  for (cgn = cgn->nested; cgn ; cgn = cgn->next_nested)
                                      ~~~^
.././../gcc-4.6.4/gcc/tree-inline.h:53:10: note: forward declaration of 'struct cgraph_node'
  struct cgraph_node *src_node;
         ^
.././../gcc-4.6.4/gcc/c-family/c-gimplify.c:103:22: error: incomplete definition of type
      'struct cgraph_node'
    c_genericize (cgn->decl);

I have tried both clang and the default compiler (by modifying /etc/make.conf) file and neither helped…


Help?



More information about the freebsd-questions mailing list