[Pyrex] Pyrex and GCC4.0

John (J5) Palmieri johnp at redhat.com
Wed Jun 15 20:53:06 CEST 2005


All the code does is switch casts from being on the lvalue to being on
the rvalue as is correct C/C++.  I don't see why it wouldn't be C++
compilable.  GCC 4.0 is a bit more strict.  Older compilers allowed
lvalue casting.  It is the only part of the Pyrex generated code that
was causing a problem.

On Wed, 2005-06-15 at 20:43 +0200, Andreas Kostyrka wrote:
> Am Montag, den 13.06.2005, 15:03 -0400 schrieb John (J5) Palmieri:
> > Jeremy Katz sent this to the list and maintainer awhile ago but since he
> > was not subscribed it got must have gotten stuck in the moderators queue
> > or at least I haven't seen any mention of it.  This allows Pyrex to
> > generate code which will compile on GCC4.0.  We have been using this
> > code since we switched to GCC4.0 in Fedora.
> 
> Is generated code compilable as C++ code?
> 
> Andreas
-- 
John (J5) Palmieri <johnp at redhat.com>




More information about the Pyrex mailing list