[LLVMbugs] [Bug 4454] New: clang reject empty character constants in the preprocessor

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Jun 26 02:07:29 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=4454

           Summary: clang reject empty character constants in the
                    preprocessor
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu


lev /tmp$ cat clang-bug1.c
#define _TAG MKTAG('', '')

lev /tmp$ clang clang-bug1.c
clang-bug1.c:1:20: error: empty character constant
#define _TAG MKTAG('', '')
                   ^
clang-bug1.c:1:24: error: empty character constant
#define _TAG MKTAG('', '')
                       ^
2 diagnostics generated.

lev /tmp$ gcc clang-bug1.c
/usr/lib/crt1.o(.text+0x8a): In function `_start':
: undefined reference to `main'

as you can see clang does not compile this trivial thing but gcc does. this
prevents mplayer from compiling


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list