| Issue |
88008
|
| Summary |
clang: /root/llvm-project/clang/lib/AST/Expr.cpp:3289: bool clang::Expr::isConstantInitializer(clang::ASTContext&, bool, const clang::Expr**) const: Assertion `!isValueDependent() && "_expression_ evaluator can't be called on a dependent _expression_."' failed.
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
danix800
|
Clang trunk assertion failed on the following invalid initializer:
```c
struct S {
int v;
};
struct T;
void test(struct T *t)
{
struct S s = { .v = t->y }; // t->y is invalid
}
```
https://godbolt.org/z/GnT41GbT5
Possibly similar to https://reviews.llvm.org/D84145.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs