<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 - `deprecated` attribute can't take a message when other attribute exists"
href="https://bugs.llvm.org/show_bug.cgi?id=37935">37935</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>`deprecated` attribute can't take a message when other attribute exists
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mail+llvm@tzik.jp
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Here is a repro. `deprecated` seems not working well with a message when it's
used with another attribute.
---- foo.cc
[[nodiscard, deprecated("")]] int foo();
----
$ clang++ --version
clang version 7.0.0 (<a href="https://llvm.googlesource.com/clang.git">https://llvm.googlesource.com/clang.git</a>
b88a7c539369de2defd02c780f60e402003de865)
(<a href="https://llvm.googlesource.com/llvm.git">https://llvm.googlesource.com/llvm.git</a>
b93460fa6259538dc2f6b9560e01c4f0552f1bb4)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /home/tzik/toolchain/out/usr/bin
$ clang++ -c foo.cc
foo.cc:1:24: error: attribute 'deprecated' cannot have an argument list
[[nodiscard, deprecated("")]] int foo();
^~~~</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>