<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 --- - -fms-extensions: SEH __try / __except crashes in template instantiation"
   href="http://llvm.org/bugs/show_bug.cgi?id=17584">17584</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>-fms-extensions: SEH __try / __except crashes in template instantiation
          </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>Windows NT
          </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>C++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>rnk@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>david.majnemer@gmail.com, dgregor@apple.com, llvmbugs@cs.uiuc.edu, timurrrr@google.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ cat t.cpp
template <void proc()>
bool wrapped() {
  bool r = true;
  __try {
    proc();
  } __except(true) {
    r = false;
  }
  return r;
}
void crash() {
  *(volatile int*)0 = 0;
}
int main() {
  wrapped<crash>();
}

$ clang-cl t.cpp -c
Assertion failed: FilterExpr && Block, file
..\tools\clang\lib\Sema\SemaStmt.cpp, line 3147
clang-cl.exe: error: clang frontend command failed with exit code 3 (use -v to
see invocation)
clang::Sema::ActOnSEHExceptBlock()
clang::TreeTransform<`anonymous
namespace'::TemplateInstantiator>::RebuildSEHExceptStmt()
clang::TreeTransform<`anonymous
namespace'::TemplateInstantiator>::TransformSEHExceptStmt()
clang::TreeTransform<`anonymous
namespace'::TemplateInstantiator>::TransformSEHHandler()
clang::TreeTransform<`anonymous
namespace'::TemplateInstantiator>::TransformSEHTryStmt()
clang::TreeTransform<`anonymous
namespace'::TemplateInstantiator>::TransformStmt()
clang::TreeTransform<`anonymous
namespace'::TemplateInstantiator>::TransformCompoundStmt()
clang::TreeTransform<`anonymous
namespace'::TemplateInstantiator>::TransformCompoundStmt()
clang::TreeTransform<`anonymous
namespace'::TemplateInstantiator>::TransformStmt()
clang::Sema::SubstStmt()
clang::Sema::InstantiateFunctionDefinition()
clang::Sema::PerformPendingInstantiations()
clang::Sema::ActOnEndOfTranslationUnit()
clang::Parser::ParseTopLevelDecl()
clang::ParseAST()
clang::ASTFrontendAction::ExecuteAction()
clang::CodeGenAction::ExecuteAction()
clang::FrontendAction::Execute()
clang::CompilerInstance::ExecuteAction()
clang::ExecuteCompilerInvocation()</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>