https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81676

Vittorio Romeo <vittorio.romeo at outlook dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vittorio.romeo at outlook dot 
com

--- Comment #3 from Vittorio Romeo <vittorio.romeo at outlook dot com> ---
Found this today, still present in gcc trunk (9.2+). Example:

int main()
{
    auto f = [](auto a, auto b) {
        if constexpr (sizeof(b) == 1) {
            return a;
        } else {
            return b;
        }
    };

    return f(1, 1) + f(1, 'a');
}

https://gcc.godbolt.org/z/SOvLEV

Reply via email to