++
Assignee: unassigned at gcc dot gnu.org
Reporter: mferoldif at gmail dot com
Target Milestone: ---
The following brief snippet wrongly triggers `-Wliteral-suffix`:
#include
using std::string_literals::operator""s;
GCC 7.3.0's output:
:2:37: w
: missed-optimization
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mferoldif at gmail dot com
Target Milestone: ---
The following snippet:
enum class E
{
A, B, C,
};
int foo(E e
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84436
--- Comment #2 from Mário Feroldi ---
That code (which is just a simplified example) is generated by macros.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84435
--- Comment #1 from Mário Feroldi ---
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)
{
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84435
--- Comment #2 from Mário Feroldi ---
I'm really sorry for the mess up (previous comment wasn't meant to be posted on
this issue); could someone delete it?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60725
Mário Feroldi changed:
What|Removed |Added
CC||mferoldif at gmail dot com
--- Comment