<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 - clang crashes on invalid code with concepts"
   href="https://bugs.llvm.org/show_bug.cgi?id=49107">49107</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang crashes on invalid code with concepts
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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++2a
          </td>
        </tr>

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

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

        <tr>
          <th>CC</th>
          <td>blitzrakete@gmail.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>code:

```
template<typename From, typename To>
concept A = true;

void foo(A<Inexistent> auto p);
```

$ ./bin/clang -cc1 -ast-dump /tmp/t.cpp -std=c++2a
$ /tmp/t.cpp:4:30: current parser token ')'
  llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
workspace/llvm-project/llvm/lib/Support/Unix/Signals.inc:565:13
  llvm::sys::RunSignalHandlers()
workspace/llvm-project/llvm/lib/Support/Signals.cpp:72:18
  SignalHandler(int)
workspace/llvm-project/llvm/lib/Support/Unix/Signals.inc:407:1
  __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14140)
  ConvertConstrainedAutoDeclSpecToType(clang::Sema&, clang::DeclSpec&,
clang::AutoTypeKeyword)
workspace/llvm-project/clang/lib/Sema/SemaType.cpp:1264:33
  ConvertDeclSpecToType((anonymous namespace)::TypeProcessingState&)
workspace/llvm-project/clang/lib/Sema/SemaType.cpp:0:0
  GetDeclSpecTypeForDeclarator((anonymous namespace)::TypeProcessingState&,
clang::TypeSourceInfo*&)
workspace/llvm-project/clang/lib/Sema/SemaType.cpp:3279:7
  clang::Sema::GetTypeForDeclarator(clang::Declarator&, clang::Scope*)
workspace/llvm-project/clang/lib/Sema/SemaType.cpp:5687:16
  clang::Sema::ActOnParamDeclarator(clang::Scope*, clang::Declarator&)
workspace/llvm-project/clang/lib/Sema/SemaDecl.cpp:13575:27
  clang::Parser::ParseParameterDeclarationClause(clang::DeclaratorContext,
clang::ParsedAttributes&,
llvm::SmallVectorImpl<clang::DeclaratorChunk::ParamInfo>&,
clang::SourceLocation&)
workspace/llvm-project/clang/lib/Parse/ParseDecl.cpp:6866:29
# clang::Parser::ParseFunctionDeclarator(clang::Declarator&,
clang::ParsedAttributes&, clang::BalancedDelimiterTracker&, bool, bool)
workspace/llvm-project/clang/lib/Parse/ParseDecl.cpp:0:7
# clang::Parser::ParseDirectDeclarator(clang::Declarator&)
workspace/llvm-project/clang/lib/Parse/ParseDecl.cpp:6173:9
# clang::Parser::ParseDeclaratorInternal(clang::Declarator&, void
(clang::Parser::*)(clang::Declarator&))
workspace/llvm-project/clang/lib/Parse/ParseDecl.cpp:0:7
# clang::Declarator::hasName() const
workspace/llvm-project/clang/include/clang/Sema/DeclSpec.h:2179:27
# clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&,
clang::DeclaratorContext, clang::SourceLocation*, clang::Parser::ForRangeInit*)
workspace/llvm-project/clang/lib/Parse/ParseDecl.cpp:1934:10
#
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier)
workspace/llvm-project/clang/lib/Parse/Parser.cpp:0:10
#
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier)
workspace/llvm-project/clang/lib/Parse/Parser.cpp:1150:12
#
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) workspace/llvm-project/clang/lib/Parse/Parser.cpp:0:12
# clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&,
bool) workspace/llvm-project/clang/lib/Parse/Parser.cpp:716:10
# clang::ParseAST(clang::Sema&, bool, bool)
workspace/llvm-project/clang/lib/Parse/ParseAST.cpp:157:5</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>