This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: bootstrap/6589: [PCH] typo in cp/cp-tree.h
- From: Kaoru Fukui <k_fukui at highway dot ne dot jp>
- To: geoffk at romulus dot sfbay dot redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Tue, 7 May 2002 17:05:26 +0900 (JST)
- Subject: Re: bootstrap/6589: [PCH] typo in cp/cp-tree.h
On 7 May, Geoffrey Keating wrote:
>
Sorry, Geoff
I missed how to use GNATS web
I'm Kaoru Fukui <k_fukui@highway.ne.jp>
Thanks Your works,I colud compiling PCH tree,
then getting result of test at right now.
Kaoru
>>Number: 6589
>>Category: bootstrap
>>Synopsis: [PCH] typo in cp/cp-tree.h
>>Confidential: no
>>Severity: serious
>>Priority: medium
>>Responsible: unassigned
>>State: open
>>Class: sw-bug
>>Submitter-Id: net
>>Arrival-Date: Tue May 07 00:06:01 PDT 2002
>>Closed-Date:
>>Last-Modified:
>>Originator: k_fukui@highway.ne.jp
>>Release: pch-branch from cvs
>>Organization:
>>Environment:
> linuxppc
>>Description:
> build error by typo of cp/cp-tree.h
> I have done PCH gcc compiling with my patch.
>
> gcc -c -DIN_GCC -O2 -fsigned-char -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -DHAVE_CONFIG_H -I. -Icp -I../../gcc -I../../gcc/cp -I../../gcc/config -I../../gcc/../include ../../gcc/cp/decl.c -o cp/decl.o
> ../../gcc/cp/decl.c: In function `build_ptrmemfunc_type':
> ../../gcc/cp/decl.c:9186: union has no member named `p'
> ../../gcc/cp/decl.c:9176: warning: `t' might be used uninitialized in this function
>
>>How-To-Repeat:
> normal bootstrap
>>Fix:
> diff -urN base/gcc/cp/cp-tree.h fixed/gcc/cp/cp-tree.h
> --- base/gcc/cp/cp-tree.h Tue May 7 10:49:01 2002
> +++ fixed/gcc/cp/cp-tree.h Tue May 7 14:27:50 2002
> @@ -1302,7 +1302,7 @@
> #else
>
> #define LANG_TYPE_CLASS_CHECK(NODE) (&TYPE_LANG_SPECIFIC (NODE)->u.c)
> -#define LANG_TYPE_PTRMEM_CHECK(NODE) (&TYPE_LANG_SPECIFIC (NODE)->u.p)
> +#define LANG_TYPE_PTRMEM_CHECK(NODE) (&TYPE_LANG_SPECIFIC (NODE)->u.ptrmem)
>
> #endif /* ENABLE_TREE_CHECKING */
>
>>Release-Note:
>>Audit-Trail:
>>Unformatted: