<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 --- - dependent type name error obscured when combining features"
   href="http://llvm.org/bugs/show_bug.cgi?id=15192">15192</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>dependent type name error obscured when combining features
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.1
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>C++11
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>gilbert@gilbertbernstein.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, 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=9976" name="attach_9976" title="small c++ file which reproduces the bug">attachment 9976</a> <a href="attachment.cgi?id=9976&action=edit" title="small c++ file which reproduces the bug">[details]</a></span>
small c++ file which reproduces the bug

When I compile the attached file, I do not receive a clear error message. 
Ideally I would receive:

    error: missing 'typename' prior to dependent type name

But instead I receive 3 errors:

    error: type name requires a specifier or qualifier
    error: C++ requires a type specifier for all declarations
    error: expected body of lambda expression

See the attached isolated example code for more details (in the comments).

I compiled this file on Mac OS X 10.8  version info:
$clang++ --version
Apple clang version 4.0 (tags/Apple/clang-421.0.57) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.2.0
Thread model: posix

I used the command
$clang++ -Wall -std=c++11 -stdlib=libc++ small_case.cpp</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>