Skip to content

[clang] 19.0.0 aborts due to Assertion !T->isDependentType() && "should not see dependent types here" failed in tools/clang/include/clang/AST/TypeNodes.inc #83684

@bjrjk

Description

@bjrjk

Compile the following 1.cpp with command line clang++ -Xclang -fdump-record-layouts-complete 1.cpp cause a clang abort:

template <class Pointer>
struct AllocationResult {
  Pointer ptr = nullptr;
  int count = 0;
};
int main(){}

The attachment is crash backtrace, preprocessed source, and associated run script.
crashsite.zip

Metadata

Metadata

Assignees

Labels

clang:frontendLanguage frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partycrashPrefer [crash-on-valid] or [crash-on-invalid]

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions