[cfe-dev] Bug 46682 : Check the explicit keyword declaration - Clang crashed in clang/lib/Sema/DeclSpec.cpp:1019 Assertion
Gousemoodhin Nadaf via cfe-dev
cfe-dev at lists.llvm.org
Wed Jul 22 12:18:19 PDT 2020
Hello Team,
Please review changes: https://reviews.llvm.org/D83929
*Problem:* Compiler crash, compiler does not check explicit declaration
context, whether it is inside class context or not, this check is missing.
*Solution*: I have added a check when the compiler encounters the
'explicit' keyword, the first compiler has to check its declaration
context. If the declaration of 'explicit' the keyword is in the class
context, it is correct, else the compiler has to throw warning message (not
crash).
Regards,
Nadaf.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200722/be0ca563/attachment.html>
More information about the cfe-dev
mailing list