<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 --- - Crash on method with dependent return type"
   href="http://llvm.org/bugs/show_bug.cgi?id=18266">18266</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash on method with dependent return type
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.3
          </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>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LLVM Codegen
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>arthur.j.odwyer@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=11744" name="attach_11744" title="output of "clang++ -std=c++11 -c t.cc -v"">attachment 11744</a> <a href="attachment.cgi?id=11744&action=edit" title="output of "clang++ -std=c++11 -c t.cc -v"">[details]</a></span>
output of "clang++ -std=c++11 -c t.cc -v"

cat >t.cc <<EOF
struct A { int f(); };

template<typename T>
struct B : A {
    auto g() -> decltype(T::f());
};

void h() {
  B<A> m;
  m.g();
}
EOF
clang++ -std=c++11 -c t.cc

Crashes with the attached "-v" output. Relevant snippet:
[...]
1.    <eof> parser at end of file
2.    t.cc:8:6: LLVM IR generation of declaration 'h'
3.    t.cc:8:6: Generating code for declaration 'h'
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
[...]</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>