[clang] [clang][Sema] fix crash on __type_pack_element with dependent packs (GH180307) (PR #180407)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 9 02:13:58 PST 2026
================
@@ -3416,15 +3420,13 @@ static QualType checkBuiltinTemplateIdType(
QualType OrigType = Converted[1].getAsType();
// C++14 [inteseq.intseq]p1:
// T shall be an integer type.
- if (!OrigType->isDependentType() && !OrigType->isIntegralType(Context)) {
+ if (!OrigType->isIntegralType(Context)) {
----------------
ojhunt wrote:
paranoia: add an `assert(!OrigType->isDependentType())` this also makes it more explicit that it is not allowed
https://github.com/llvm/llvm-project/pull/180407
More information about the cfe-commits
mailing list