Issue |
101685
|
Summary |
[clang] Crash on templated type with address space
|
Labels |
clang
|
Assignees |
|
Reporter |
jdoerfert
|
Clang crashes with a TypeLocBuilder assertion when run on this code (https://godbolt.org/z/or16hfTzf), no other command line options necessary:
```
template <int AS>
using ASPtrTy = void [[clang::address_space(AS)]] *;
template <int AS>
struct EntryTy {
ASPtrTy<AS> Base;
};
```
> clang::TypeLoc clang::TypeLocBuilder::pushImpl(clang::QualType, size_t, unsigned int): Assertion `TLast == LastTy && "mismatch between last type and new type's inner type"' failed.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs