<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 --- - [MSVC] #pragma warning works incorrectly for "1-4:" specifiers"
href="https://llvm.org/bugs/show_bug.cgi?id=23577">23577</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[MSVC] #pragma warning works incorrectly for "1-4:" specifiers
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</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>andreybokhanko@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu, rnk@google.com
</td>
</tr>
<tr>
<th>Blocks</th>
<td>13707
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>#pragma warning, while functionally complete (see
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [MSVC] LLVM Toolset does not understand #pragma warning"
href="show_bug.cgi?id=17145">https://llvm.org/bugs/show_bug.cgi?id=17145</a>) has a bug -- it works incorrectly
for "1-4:" specifiers:
$ cat warning-test.c
#pragma warning(1: 100)
$ cl warning-test.c -c
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.22310.1 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
warning-test.c
$ clang-cl warning-test.c -c
warning-test.c(1,17) : warning: #pragma warning expected 'push', 'pop',
'default', 'disable', 'error', 'once', 'suppress', 1, 2, 3, or 4
[-Wunknown-pragmas]
#pragma warning(1: 100)
^
1 warning 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>