https://bugs.llvm.org/show_bug.cgi?id=44886
Bug ID: 44886
Summary: Bitfields in class templates cause assertion failures
Product: clang
Version: 10.0
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected]
Blocks: 44555
$ cat reduced.cpp
template <class T> class C {
enum { K = 1 };
int i : K;
unsigned u() { return i; }
};
$ clang -cc1 -fsyntax-only reduced.cpp
clang: /home/smeenai/llvm-project/clang/lib/AST/ExprConstant.cpp:14529: bool
clang::Expr::isIntegerConstantExpr(llvm::APSInt &, const clang::ASTContext &,
clang::SourceLocation *, bool) const: Assertion `!isValueDependent() &&
"Expression evaluator can't be called on a de
pendent expression."' failed.
I bisected this to
https://github.com/llvm/llvm-project/commit/878a24ee244a24c39d1c57e9af2e88c621f7cce9,
so it's a regression from 9 to 10.
Referenced Bugs:
https://bugs.llvm.org/show_bug.cgi?id=44555
[Bug 44555] [meta] 10.0.0 Release Blockers
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs