------- 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

Reply via email to