<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 --- - -frewrite-includes: incorrect support of __has_include_next"
href="https://llvm.org/bugs/show_bug.cgi?id=26828">26828</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>-frewrite-includes: incorrect support of __has_include_next
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>eugvelesevich@gmail.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>Created <span class=""><a href="attachment.cgi?id=15980" name="attach_15980" title="The test mentioned in the bug description.">attachment 15980</a> <a href="attachment.cgi?id=15980&action=edit" title="The test mentioned in the bug description.">[details]</a></span>
The test mentioned in the bug description.
Now __has_include_next is handled as __has_include:
include_next.cpp:
#include <h.h>
inc/h.h:
#if __has_include_next(<h.h>) /* expands in 1 */
#include_next <h.h>
#else
int main() { int inc; }
#endif
inc2/h.h:
#if __has_include_next(<h.h>) /* incorrectly expands in 1 */
#include_next <h.h>
#else
int main() { int inc2; }
#endif
"clang++ -frewrite-includes -E include_next.cpp -isystem inc -isystem inc2 |
clang++ -E -" produces empty file(with line directives).</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>