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

Reply via email to