c++ __builtin_va_list problem

Richard Henderson rth@cygnus.com
Sun Aug 8 23:44:00 GMT 1999


I'm getting a segv building iostream.cc.  It's at

#0  0x12020a280 in decl_namespace (decl=0x0)
    at ../../../../egcs/gcc/cp/decl2.c:4518
#1  0x12020a81c in arg_assoc_class (k=0x11fffe430, type=0x120458b28)
    at ../../../../egcs/gcc/cp/decl2.c:4683
#2  0x12020aa7c in arg_assoc_type (k=0x11fffe430, type=0x120458b28)
    at ../../../../egcs/gcc/cp/decl2.c:4736
#3  0x12020accc in arg_assoc (k=0x11fffe430, n=0x120775768)
    at ../../../../egcs/gcc/cp/decl2.c:4810

  k->classes = tree_cons (type, NULL_TREE, k->classes);

  context = decl_namespace (TYPE_MAIN_DECL (type));	 <<<====
  if (arg_assoc_namespace (k, context))
    return 1;

TYPE is __builtin_va_list, which was constructed by the backend.
Unsurprisingly, TYPE_MAIN_DECL is null.  

What would be the best way to handle this?


r~


More information about the Gcc-bugs mailing list