This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

bootstrap/6589: [PCH] typo in cp/cp-tree.h



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]