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

2018-02-19 Thread mferoldif at gmail dot com
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)

[Bug middle-end/60725] [-Wreturn-type] false positive in trivial switch

2018-02-19 Thread mferoldif at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60725 Mário Feroldi changed: What|Removed |Added CC||mferoldif at gmail dot com --- Comment

[Bug c++/84436] Missed optimization with switch on enum constants returning the same value

2018-02-19 Thread mferoldif at gmail dot com
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.

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

2018-02-19 Thread mferoldif at gmail dot com
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?

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

2018-02-18 Thread mferoldif at gmail dot com
++ 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: warnin

[Bug c++/84436] New: Missed optimization with switch on enum constants returning the same value

2018-02-18 Thread mferoldif at gmail dot com
: 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