From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21840 invoked by alias); 13 Oct 2009 07:55:34 -0000 Received: (qmail 21829 invoked by uid 22791); 13 Oct 2009 07:55:33 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-px0-f196.google.com (HELO mail-px0-f196.google.com) (209.85.216.196) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Oct 2009 07:55:27 +0000 Received: by pxi34 with SMTP id 34so8703720pxi.8 for ; Tue, 13 Oct 2009 00:55:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.132.7 with SMTP id f7mr613729rvd.296.1255420526177; Tue, 13 Oct 2009 00:55:26 -0700 (PDT) In-Reply-To: <3c75ef2e0910130029t7d0cab3ax5064f23001fcf662@mail.gmail.com> References: <3c75ef2e0910130029t7d0cab3ax5064f23001fcf662@mail.gmail.com> Date: Tue, 13 Oct 2009 07:55:00 -0000 Message-ID: <3c75ef2e0910130055w701ff66jeb25334b3da78d21@mail.gmail.com> Subject: Re: Error "pointer to unimplemented type" From: prashant rawat To: gcc-bugs@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-10/txt/msg01101.txt.bz2 How is the pointer-to-pointer type taken care of in function walk_type ()? If I modify the if statement of line 2014 (gengtype.c) to if ((!t->u.p->kind =3D=3D TYPE_POINTER) && ! UNION_OR_STRUCT_P (t->u.p) && t->u.p->kind !=3D TYPE_PARAM_STRUCT) it works fine. On Tue, Oct 13, 2009 at 12:59 PM, prashant rawat wrote: > Hello, > While trying to add a field 'tree * var_list' to struct cgraph_node > (defined in cgraph.h), I got an error > > ../../gcc-4.3.1/gcc/cgraph.h:128: field `(*x).var_list' is pointer to > unimplemented type > =A0../../gcc-4.3.1/gcc/cgraph.h:128: field `(*x).var_list' is pointer to > unimplemented type > =A0../../gcc-4.3.1/gcc/cgraph.h:128: field `(*x).var_list' is pointer to > unimplemented type > =A0make[3]: *** [s-gtype] Error 1 > > This happened all the times I tried adding a pointer-to-pointer type > data structure in cgraph_node. > The error is generated in line 2020 of file gengtype.c. > Did anyone else notice the same problem? Is it a potential bug? > Thanks! >