------- Comment #24 from tbm at cyrius dot com  2007-02-03 15:06 -------
Is the following supposed to fail given that Joseph said that it's valid C code
(but not valid in C++) and the header contains extern "C":

(sid)976:[EMAIL PROTECTED]: ~/src] cat t.h
#if defined(__cplusplus)
extern "C" {
#endif
    typedef void ALCvoid;
    void test(ALCvoid);
#if defined(__cplusplus)
}
#endif
(sid)977:[EMAIL PROTECTED]: ~/src] cat t.c
#include "t.h"
(sid)978:[EMAIL PROTECTED]: ~/src] /usr/lib/gcc-snapshot/bin/g++ -c t.c
In file included from t.c:1:
t.h:5: error: '<anonymous>' has incomplete type
t.h:5: error: invalid use of 'ALCvoid'


-- 

tbm at cyrius dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tbm at cyrius dot com, jsm28
                   |                            |at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9278

Reply via email to