<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 in clang::Expr::isDefaultArgument() with AppleClang 12.0.5"
   href="https://bugs.llvm.org/show_bug.cgi?id=51970">51970</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash in clang::Expr::isDefaultArgument() with AppleClang 12.0.5
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>12.0
          </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>enhancement
          </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>jeanmichael.celerier@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=25292" name="attach_25292" title="Crash report as provided by clang">attachment 25292</a> <a href="attachment.cgi?id=25292&action=edit" title="Crash report as provided by clang">[details]</a></span>
Crash report as provided by clang

Here's a backtrace:

```
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   clang                               0x0000000105689c34
clang::CastExpr::getSubExprAsWritten() + 196
1   clang                               0x000000010568d411
clang::Expr::isDefaultArgument() const + 65
2   clang                               0x00000001055359d2
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExprs(clang::Expr* const*, unsigned
int, bool, llvm::SmallVectorImpl<clang::Expr*>&, bool*) + 98
3   clang                               0x000000010553a0cb
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCallExpr(clang::CallExpr*) + 123
4   clang                               0x0000000105535bee
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExprs(clang::Expr* const*, unsigned
int, bool, llvm::SmallVectorImpl<clang::Expr*>&, bool*) + 638
5   clang                               0x000000010553a0cb
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCallExpr(clang::CallExpr*) + 123
6   clang                               0x0000000105532e36
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*,
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::StmtDiscardKind) + 54
7   clang                               0x0000000105543b41
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*,
bool) + 209
8   clang                               0x0000000105546ec5
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformIfStmt(clang::IfStmt*) + 197
9   clang                               0x0000000105543b41
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*,
bool) + 209
10  clang                               0x0000000106a2a412
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCXXCatchStmt(clang::CXXCatchStmt*)
+ 50
11  clang                               0x0000000106a2a591
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCXXTryStmt(clang::CXXTryStmt*) +
193
12  clang                               0x0000000105543b41
clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*,
bool) + 209
13  clang                               0x0000000105532ddb
clang::Sema::SubstStmt(clang::Stmt*, clang::MultiLevelTemplateArgumentList
const&) + 59
14  clang                               0x0000000105558e2d
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool, bool) + 1309
15  clang                               0x000000010555ac82
clang::Sema::PerformPendingInstantiations(bool) + 402
16  clang                               0x0000000105558f3e
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool, bool) + 1582
17  clang                               0x000000010555ac82
clang::Sema::PerformPendingInstantiations(bool) + 402
18  clang                               0x0000000105558f3e
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool, bool) + 1582
19  clang                               0x000000010555ac82
clang::Sema::PerformPendingInstantiations(bool) + 402
20  clang                               0x0000000105558f3e
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool, bool) + 1582
21  clang                               0x000000010555ac82
clang::Sema::PerformPendingInstantiations(bool) + 402
22  clang                               0x000000010514dca0
clang::Sema::ActOnEndOfTranslationUnitFragment(clang::Sema::TUFragmentKind) +
192
23  clang                               0x000000010514e939
clang::Sema::ActOnEndOfTranslationUnit() + 297
24  clang                               0x0000000105116462
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&, bool)
+ 722
25  clang                               0x000000010509b4e6
clang::ParseAST(clang::Sema&, bool, bool) + 358
26  clang                               0x0000000104b17fb3
clang::FrontendAction::Execute() + 35
27  clang                               0x0000000104ad17f1
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 897
28  clang                               0x0000000104b63095
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1829
29  clang                               0x0000000103bc14de
cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 1678
30  clang                               0x0000000103bc0539
ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) + 761
31  clang                               0x0000000103bc01ac main + 4076
32  libdyld.dylib                       0x00007fff203f2f5d start + 1

```

My compiler:
```
Apple clang version 12.0.5 (clang-1205.0.22.11)
Target: x86_64-apple-darwin20.5.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

```</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>