This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/84435] -Wliteral-suffix warns on a using-directive
- From: "mferoldif at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 19 Feb 2018 13:01:46 +0000
- Subject: [Bug c++/84435] -Wliteral-suffix warns on a using-directive
- Auto-submitted: auto-generated
- References: <bug-84435-4@http.gcc.gnu.org/bugzilla/>
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;
}
}