[llvm-bugs] [Bug 44886] New: Bitfields in class templates cause assertion failures
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Feb 12 10:06:00 PST 2020
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: unassignedclangbugs at nondot.org
Reporter: smeenai at fb.com
CC: elizabeth.andrews at intel.com, hans at chromium.org,
llvm-bugs at lists.llvm.org, melanie.blower at intel.com,
neeilans at live.com, richard-llvm at metafoo.co.uk
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200212/d1074468/attachment.html>
More information about the llvm-bugs
mailing list