Apparent qualify_type() bug for C, but not for C++
Mark Mitchell
mark@codesourcery.com
Thu Sep 30 19:57:00 GMT 1999
Fixed with this patch.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
Wed Sep 15 21:20:38 1999 Mark Mitchell <mark@codesourcery.com>
* c-typeck.c (qualify_type): Merge qualifiers from both types.
Index: c-typeck.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/c-typeck.c,v
retrieving revision 1.36
diff -c -p -r1.36 c-typeck.c
*** c-typeck.c 1999/09/08 04:51:13 1.36
--- c-typeck.c 1999/09/16 04:16:05
*************** static tree
*** 167,173 ****
qualify_type (type, like)
tree type, like;
{
! return c_build_qualified_type (type, TYPE_QUALS (like));
}
/* Return the common type of two types.
--- 167,174 ----
qualify_type (type, like)
tree type, like;
{
! return c_build_qualified_type (type,
! TYPE_QUALS (type) | TYPE_QUALS (like));
}
/* Return the common type of two types.
More information about the Gcc-bugs
mailing list