This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29861] Language Related
- From: "r dot j dot hummel at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Nov 2006 02:45:52 -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 #2 from r dot j dot hummel at gmail dot com 2006-11-16 02:45 -------
Subject: Re: Language Related
Sigh, it's a macro. Say no more:-(
Sorry to waste your time.
Thank you,
Richard Hummel
pinskia at gcc dot gnu dot org wrote:
> ------- 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.
>
>
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29861