This patch is a follow up to 878a24ee24. Name of bitfields
with value-dependent width should be set as type-dependent. This
patch adds the required value-dependency check and sets the
type-dependency accordingly.
Patch fixes PR44886
Differential revision: https://reviews.llvm.org/D72242
14 lines
160 B
C++
14 lines
160 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
// expected-no-diagnostics
|
|
|
|
template <int b>
|
|
class A {
|
|
int c : b;
|
|
|
|
public:
|
|
void f() {
|
|
if (c)
|
|
;
|
|
}
|
|
};
|