lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 2 Feb 2022 21:13:49 +0100
From:   Miguel Ojeda <>
To:     David Laight <>
Cc:     Kees Cook <>,
        Jonathan Corbet <>,
        Linus Torvalds <>,
        Martin Uecker <>,
        Ingo Molnar <>,
        Rikard Falkeborn <>,
        Arnd Bergmann <>,
        "" <>,
        Tetsuo Handa <>,
        Andrew Morton <>,
        Andy Shevchenko <>,
        Nick Desaulniers <>,
        "Gustavo A. R. Silva" <>,
        "" <>,
        "" <>
Subject: Re: [PATCH] linux/const.h: Explain how __is_constexpr() works

On Wed, Feb 2, 2022 at 5:19 PM David Laight <> wrote:
> - The conditional operator (?:) requires that both expressions have the
>   the same type (after numeric promotions).

I think you are referring to the arithmetic types case, but that one
does not apply here.

> - If the expressions have distinct non-NULL pointer types then they are both
>   cast to (void *) and the result has type 'void *'.

GCC and Clang give `void *` for this, but something like `float *` and
`int *` do not fit the constrains of the operator.


Powered by blists - more mailing lists