<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 --- - Compiler crash while compiling simple template"
   href="http://llvm.org/bugs/show_bug.cgi?id=19159">19159</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Compiler crash while compiling simple template
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.4
          </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>release blocker
          </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>ewconnell@hotmail.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=12241" name="attach_12241" title="This is the command script dumped by xcode">attachment 12241</a> <a href="attachment.cgi?id=12241&action=edit" title="This is the command script dumped by xcode">[details]</a></span>
This is the command script dumped by xcode

I reduced my code to the simplest repro possible. 
Compile this with Xcode 5.1 default settings, and crash!
The clang command used is in the attached .sh file
It worked fine with Xcode 5.0

//  main.cpp
template<typename T>
class myclass
{
public:
    myclass(int i) {}
    void action() {}
};

template<typename T>
void myfunc() {
    myclass<T> data(0);

    auto fn = [&]() {
    data.action();
    };
}

int main(int argc, const char * argv[])
{
    return 0;
}</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>