Print this page
11972 resync smatch
*** 16,26 ****
static int *e = (&a.d)->b; // OK
static int *f = &a.d.b[1]; // OK
static int *g = &(&a.d)->b[1]; // OK
/*
! * check-name: address of static object's member constness verification.
* check-command: sparse -Wconstexpr-not-const $file
*
* check-error-start
* check-error-end
*/
--- 16,26 ----
static int *e = (&a.d)->b; // OK
static int *f = &a.d.b[1]; // OK
static int *g = &(&a.d)->b[1]; // OK
/*
! * check-name: constexpr static object's member address
* check-command: sparse -Wconstexpr-not-const $file
*
* check-error-start
* check-error-end
*/