This is the mail archive of the gcc-patches@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]

Re: g++ build failure (Was: C++ PATCH: PR 12735)


On Thu, 2003-11-13 at 08:17, Richard Earnshaw wrote:
> > On Thu, 13 Nov 2003, Joern Rennecke wrote:
> > 
> > > exists in c99, it is not compatible with any pointer type, and
> > > thus assigning a union tree_node * to ok is a constraint violation
> > > of 6.5.16.1 .
> > 
> > The last case of 6.5.16.1#1 ("the left operand has type _Bool and the
> > right is a pointer") is the one that applies.
> > 
> > But the requirement for cross-compilers to build with 2.95 means we can't
> > use this (or other properties of _Bool that distinguish it from other
> > integer types) in GCC.
> > 
> 
> Indeed.  However, in this case the patch is trivial.  Just change the 
> declaration of ok to a tree and we can use an implicit NULL check.
> 
> I'm just testing with this change:

That is clearly correct.  Thanks for fixing that!

-- 
Mark Mitchell <mark@codesourcery.com>
CodeSourcery, LLC


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