[llvm-bugs] [Bug 43367] New: [ICE] Assertion failed: Invalid modifier for QualType argument

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 19 16:01:02 PDT 2019


            Bug ID: 43367
           Summary: [ICE] Assertion failed: Invalid modifier for QualType
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: trass3r at gmail.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

struct exception
class bad_cast : exception
    bad_cast(char* m) : exception(m)

$ clang++ -v
clang version 10.0.0 (https://github.com/llvm/llvm-project.git
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

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190919/ba6bcf14/attachment.html>

More information about the llvm-bugs mailing list