Issue 150688
Summary Assertion `TL.getFullDataSize() == CurrTL.getFullDataSize()' failed.
Labels bug, clang, clang:frontend
Assignees
Reporter thevinster
    I'm running into crashes on the following assertion: 
```
clang::TypeSourceInfo* GetTypeSourceInfoForDeclarator({anonymous}::TypeProcessingState&, clang::QualType, clang::TypeSourceInfo*): Assertion `TL.getFullDataSize() == CurrTL.getFullDataSize()' failed.`
```

This was seen when using clang-19, but it repros on upstream main as well. This can be reproduced using an assertions enabled clang on [godbolt](https://godbolt.org/z/bacEnhzbY). The reproducer is a malformed program, but it was reduced from valid code in a large internal project. Using a noasserts compiler doesn't solve the issue either. Rather, it just crashes on something else downstream, so it could very well be a source code issue. However, whether it's an issue with the compiler or with the program, clang shouldn't be crashing, and should throw a valid error message in such situations. 
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to