[llvm-bugs] [Bug 28438] New: Submodule containing macro somehow hides a textually included macro definition
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jul 6 11:37:22 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28438
Bug ID: 28438
Summary: Submodule containing macro somehow hides a textually
included macro definition
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Modules
Assignee: unassignedclangbugs at nondot.org
Reporter: vvasilev at cern.ch
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
In file included from StreamingMemoryObject.cpp:13:
In file included from
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/cstring:41:
In file included from
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/x86_64-linux-gnu/c++/4.9/bits/c++config.h:430:
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/x86_64-linux-gnu/c++/4.9/bits/os_defines.h:44:19:
error: token is not a valid binary
operator in a preprocessor subexpression
#if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
~~~~~~~~~~~~~~^
In file included from StreamingMemoryObject.cpp:13:
In file included from
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/cstring:42:
/usr/include/string.h:27:1: error: unknown type name '__BEGIN_DECLS'
__BEGIN_DECLS
^
In file included from StreamingMemoryObject.cpp:13:
In file included from
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/cstring:42:
In file included from /usr/include/string.h:32:
/home/vvassilev/workspace/llvm-git/inst/bin/../lib/clang/3.8.0/include/stddef.h:62:1:
error: expected unqualified-id
typedef __SIZE_TYPE__ size_t;
^
In file included from StreamingMemoryObject.cpp:13:
In file included from
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/cstring:42:
/usr/include/string.h:39:69: error: token is not a valid binary operator in a
preprocessor subexpression
#if defined __cplusplus && (__cplusplus >= 199711L || __GNUC_PREREQ (4, 4))
~~~~~~~~~~~~~ ^
/usr/include/string.h:44:1: error: unknown type name '__BEGIN_NAMESPACE_STD'
__BEGIN_NAMESPACE_STD
^
/usr/include/string.h:46:1: error: expected unqualified-id
extern void *memcpy (void *__restrict __dest, const void *__restrict __src,
^
/usr/include/string.h:50:56: error: declaration of 'size_t' must be imported
from module 'LLVM_Utils.ADT.Hashing' before it is required
extern void *memmove (void *__dest, const void *__src, size_t __n)
^
/home/vvassilev/workspace/llvm-git/inst/bin/../lib/clang/3.8.0/include/stddef.h:62:23:
note: previous declaration is here
typedef __SIZE_TYPE__ size_t;
^
In file included from StreamingMemoryObject.cpp:13:
In file included from
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/cstring:42:
/usr/include/string.h:51:6: error: expected function body after function
declarator
__THROW __nonnull ((1, 2));
^
/usr/include/string.h:52:1: error: unknown type name '__END_NAMESPACE_STD'
__END_NAMESPACE_STD
^
/usr/include/string.h:58:1: error: expected unqualified-id
extern void *memccpy (void *__restrict __dest, const void *__restrict __src,
^
/usr/include/string.h:64:1: error: unknown type name '__BEGIN_NAMESPACE_STD'
__BEGIN_NAMESPACE_STD
^
/usr/include/string.h:66:1: error: expected unqualified-id
extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
^
/usr/include/string.h:70:6: error: expected function body after function
declarator
__THROW __attribute_pure__ __nonnull ((1, 2));
^
/usr/include/string.h:97:7: error: expected function body after function
declarator
__THROW __attribute_pure__ __nonnull ((1));
^
/usr/include/string.h:99:1: error: unknown type name '__END_NAMESPACE_STD'
__END_NAMESPACE_STD
^
/usr/include/string.h:110:1: error: expected unqualified-id
extern void *rawmemchr (const void *__s, int __c)
^
/usr/include/string.h:122:7: error: expected function body after function
declarator
__THROW __attribute_pure__ __nonnull ((1));
^
/usr/include/string.h:127:1: error: unknown type name '__BEGIN_NAMESPACE_STD'
__BEGIN_NAMESPACE_STD
^
/usr/include/string.h:129:1: error: expected unqualified-id
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
--
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/20160706/4a6ce989/attachment-0001.html>
More information about the llvm-bugs
mailing list