<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Submodule containing macro somehow hides a textually included macro definition"
href="https://llvm.org/bugs/show_bug.cgi?id=28438">28438</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Submodule containing macro somehow hides a textually included macro definition
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Modules
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>vvasilev@cern.ch
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>