<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - _Pragma in submacro"
href="https://bugs.llvm.org/show_bug.cgi?id=31999">31999</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>_Pragma in submacro
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>4.0
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>samuel@thimbleby.net
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>_Pragmas should hide both warnings
clang-4.0 hides one warning, and clang++ hides neither
This is similar to <a class="bz_bug_link
bz_status_NEW "
title="NEW - _Pragma operator handled too late"
href="show_bug.cgi?id=15129">bug 15129</a>, but doesn't depend on concatenation, and is
important to my code
-----------
#define HIDE(...) \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Wint-conversion\"") \
__VA_ARGS__ \
_Pragma("clang diagnostic pop")
#define A(B) B
int main(void) {
int a;
HIDE(a = (int*)0);
A(HIDE(a = (int*)0)); }</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>