[cfe-dev] clang bug. (possibly preprocessor)

Csaba Hruska csaba.hruska at gmail.com
Fri May 23 16:55:50 PDT 2008


Hi!
Here is my new bugreport :)
gcc accepts it. Its from xvid library, but it is heavily stripped down to be
simple and clean.
it throws error with clang svn revision 51520.

code (filename is important, filename is: qpel.c) :

#ifndef XVID_AUTO_INCLUDE

#define XVID_AUTO_INCLUDE
#define FUNC_H H_Pass_16_C
#include "qpel.c"

#define FUNC_H H_Pass_8_C

#include "qpel.c"
#undef XVID_AUTO_INCLUDE

typedef void ff();
typedef struct { ff *a; } S;

S s = { H_Pass_8_C };

#endif

#if defined(XVID_AUTO_INCLUDE) && defined(REFERENCE_CODE)
#elif defined(XVID_AUTO_INCLUDE) && !defined(REFERENCE_CODE)

static void FUNC_H(){};
#undef FUNC_H

#endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080524/f43d329a/attachment.html>


More information about the cfe-dev mailing list