<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 - [ICE] Assertion failed: Invalid modifier for QualType argument"
   href="https://bugs.llvm.org/show_bug.cgi?id=43367">43367</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[ICE] Assertion failed: Invalid modifier for QualType argument
          </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>normal
          </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>trass3r@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>struct exception
{};
class bad_cast : exception
{
    bad_cast(char* m) : exception(m)
    {}
};

$ clang++ -v
clang version 10.0.0 (<a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a>
0cfb78e52af247366e6e8fe00a906022bf4abca5)
Target: x86_64-pc-windows-msvc

$ clang++.exe -c test.cpp
error: no matching constructor for initialization of 'exception'
Assertion failed: Modifier.empty() && Argument.empty() && "Invalid modifier for
QualType argument", file clang\lib\AST\ASTDiagnostic.cpp, line 385
Stack dump:
1.      test.cpp:6:5: current parser token '{'
2.      test.cpp:3:1: parsing struct/union/class body 'bad_cast'
clang::FormatASTNodeDiagnosticArgument() + 0xF5F bytes(s),
clang\lib\AST\ASTDiagnostic.cpp, line 388
clang::Diagnostic::FormatDiagnostic() + 0x748 bytes(s),
clang\lib\Basic\Diagnostic.cpp, line 991 + 0x158 byte(s)
clang::Diagnostic::FormatDiagnostic() + 0xAB bytes(s),
clang\lib\Basic\Diagnostic.cpp, line 772
clang::TextDiagnosticPrinter::HandleDiagnostic() + 0x55 bytes(s),
clang\lib\Frontend\TextDiagnosticPrinter.cpp, line 119
clang::DiagnosticIDs::ProcessDiag() + 0x1F7 bytes(s),
clang\lib\Basic\DiagnosticIDs.cpp, line 704 + 0x42 byte(s)
clang::DiagnosticsEngine::EmitCurrentDiagnostic() + 0x78 bytes(s),
clang\lib\Basic\Diagnostic.cpp, line 516 + 0xB byte(s)
clang::Sema::EmitCurrentDiagnostic() + 0x21A bytes(s), clang\lib\Sema\Sema.cpp,
line 1369 + 0xB byte(s)
DiagnoseBadConversion() + 0x3415 bytes(s), clang\lib\Sema\SemaOverload.cpp,
line 9935 + 0x55 byte(s)
clang::OverloadCandidateSet::NoteCandidates() + 0x196D bytes(s),
clang\lib\Sema\SemaOverload.cpp, line 10887 + 0x968 byte(s)
clang::OverloadCandidateSet::NoteCandidates() + 0x142 bytes(s),
clang\lib\Sema\SemaOverload.cpp, line 10865
clang::InitializationSequence::Diagnose()</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>