<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 --- - libc++ recursive setjmp() macro causes -Wdisabled-macro-expansion warning"
href="https://llvm.org/bugs/show_bug.cgi?id=26717">26717</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>libc++ recursive setjmp() macro causes -Wdisabled-macro-expansion warning
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>sean@rogue-research.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Consider this reduced/trivial C++ snippet:
----------
#include <setjmp.h>
int main()
{
setjmp(0);
return 0;
}
----------
compiling with clang trunk gives:
/Users/sean/test.cxx:5:3: warning: disabled expansion of recursive macro
[-Wdisabled-macro-expansion]
setjmp(0);
^
/Users/sean/llvm/llvm-rel-install/bin/../include/c++/v1/setjmp.h:40:21: note:
expanded from macro 'setjmp'
#define setjmp(env) setjmp(env)
^
(If I use a .c file, I don't get the warning.)
As that's an llvm header (and has '#pragma GCC system_header'), I would hope
not to get this warning.</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>