<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 --- - spurious warning when using header scoped anonymous namespace"
   href="http://llvm.org/bugs/show_bug.cgi?id=16345">16345</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>spurious warning when using header scoped anonymous namespace
          </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>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>tmmikolajczyk@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=10687" name="attach_10687" title="code reproducing the issue">attachment 10687</a> <a href="attachment.cgi?id=10687&action=edit" title="code reproducing the issue">[details]</a></span>
code reproducing the issue

See the simple code attached. Clang generates a diagnostic about unneeded
function:

$ clang++ -Wall main.cpp
In file included from main.cpp:1:
./foo.h:12:6: warning: function 'do_something' is not needed and will not be
      emitted [-Wunneeded-internal-declaration]
void do_something()
     ^
1 warning generated.
$

The function is needed actually. Please note that the warning is not generated
when foo and fooimpl functions are non-template functions.

The issue concerns clang version 3.2, from trunk, or 3.3 version already
available on ArchLinux OS.</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>