After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 156341 - typename variable conflicts with C++ reserved word
typename variable conflicts with C++ reserved word
Status: RESOLVED DUPLICATE of bug 155304
Product: pygtk
Classification: Bindings
Component: general
2.3.x/2.4.x
Other Mac OS
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2004-10-24 23:57 UTC by Bryan Blackburn
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to rename typename variables to type_name (4.09 KB, patch)
2004-10-24 23:59 UTC, Bryan Blackburn
none Details | Review

Description Bryan Blackburn 2004-10-24 23:57:25 UTC
If a C++ project is compiled while including pygobject.h (which has some declarations including 
variables called "typename"), the compilation fails since "typename" is a C++ reserved word.

A patch will be attached which should correct this (renames the variables to type_name); I didn't 
touch the codegen stuff, however, so there may be changes needed there as well.
Comment 1 Bryan Blackburn 2004-10-24 23:59:45 UTC
Created attachment 33012 [details] [review]
Patch to rename typename variables to type_name
Comment 2 Johan (not receiving bugmail) Dahlin 2004-10-25 00:03:48 UTC
There is little reason to be able to compile PyGTK itself with a C++ compiler,
therefor only the headers needs a change.

The header was fixed in bug 155304, closing as dup.

*** This bug has been marked as a duplicate of 155304 ***