<html>
<head>
<base href="http://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 --- - -Wmissing-declarations is not implemented to mean what GCC means"
href="http://llvm.org/bugs/show_bug.cgi?id=16286">16286</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>-Wmissing-declarations is not implemented to mean what GCC means
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>b.r.longbons@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=10660" name="attach_10660" title="basic test case for both warnings">attachment 10660</a> <a href="attachment.cgi?id=10660&action=edit" title="basic test case for both warnings">[details]</a></span>
basic test case for both warnings
Even more than the still-unfixed <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - -Wredundant-decls not implemented"
href="show_bug.cgi?id=4803">bug #4803</a>, I find -Wmissing-declarations
essential in C++ to make accidental parameter mismatches compiler errors rather
than linker errors.
However, -Wmissing-declarations seems to be used for something else, as in <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - missing error when bound member function not called"
href="show_bug.cgi?id=10830">bug
#10830</a>.
Additionally, you could emit better warnings than GCC if, when emitting the
warning for -Wmissing-declarations, you also emit the location of any
declarations this definition is overloading.</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>