This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29861] Language Related
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Nov 2006 01:50:23 -0000
- Subject: [Bug c++/29861] Language Related
- References: <bug-29861-13573@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-11-16 01:50 -------
This is because DefaultScreen(a) is a #define by the X11 headers so the error
message is the best GCC can give really.
int (((_XPrivDisplay)void)->default_screen) { return
::(((_XPrivDisplay)m_pDisplay)->default_screen); }
What you can do is the following:
int (DefaultScreen)(void) { return DefaultScreen(m_pDisplay); }
GCC cannot really give a good error message on this because of DefaultScreen is
a preprocessed defined and then that is subsituted in and you get :
int (((_XPrivDisplay)void)->default_screen) { return
::(((_XPrivDisplay)m_pDisplay)->default_screen); }
Which is not what you wantted and is hard to give a good error message really.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29861