[LLVMbugs] [Bug 12035] New: Preprocessor inserts spaces in macro expansions

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Feb 19 00:20:13 PST 2012


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

             Bug #: 12035
           Summary: Preprocessor inserts spaces in macro expansions
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nikita at zhuk.fi
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


clang 3.1 which is shipping with Xcode 4.3 ("based on LLVM 3.1svn") seems to
insert extra spaces in macro expansions.

A test case:

$ cat foo.h 
#define VALUE 2012-02-19
Output: VALUE

$ clang -E -P foo.h 

Output: 2012 -02 -19

$ gcc -E -P foo.h 



Output: 2012-02-19


$ clang --version
Apple clang version 3.1 (tags/Apple/clang-318.0.45) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.3.0
Thread model: posix


Notes:
- Apple Radar #10883862

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