[LLVMbugs] [Bug 19557] New: Can't preprocess and compile file with float.h include

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 25 06:15:49 PDT 2014


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

            Bug ID: 19557
           Summary: Can't preprocess and compile file with float.h include
           Product: clang
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Modules
          Assignee: unassignedclangbugs at nondot.org
          Reporter: agris.dumins at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Preprocessing file with content:

<code>
#include <float.h>
</code>

and passing "-fmodules" attribute, include gets converted to following code:

<code>
@import Darwin.C.float; /* clang -E: implicit import for
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/float.h"
*/
</code>

Problem is, that compiling preprcessed code, it throws error:
error: expected a module name after module import
@import Darwin.C.float; /* clang -E: implicit import for
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/float.h"
*/
                 ^
1 error generated.



I guess, problem is in module name parsing.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140425/bd3178fd/attachment.html>


More information about the llvm-bugs mailing list