This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/84435] -Wliteral-suffix warns on a using-directive


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

--- Comment #1 from Mário Feroldi <mferoldif at gmail dot com> ---
Note that the following `foo`'s variant doesn't make the warning go away:

    int foo(E e)
    {
        (e == E::A || e == E::B || e == E::C) ? void() :
__builtin_unreachable();
        switch (e)
        {
            case E::A: return 0;
            case E::B: return 1;
            case E::C: return 2;
        }
    }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]