[Bug c++/108590] New: Wrong integer promotoion for consteval

2023-01-29 Thread HZ2012 at gmx dot at via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: HZ2012 at gmx dot at Target Milestone: --- #include constexpr int8_t operator"" _int8_constexpr(unsigned long long int val) { return val; } consteval int8_t operator"" _int8_consteval(unsigned long long i

[Bug c++/92907] New: noexcept does not consider "const" in member functions

2019-12-11 Thread HZ2012 at gmx dot at
iority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: HZ2012 at gmx dot at Target Milestone: --- Created attachment 47470 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47470&action=edit Source code example When the noexcept operator is used in

[Bug c++/80641] New: Warning with std::vector resize in loop

2017-05-05 Thread HZ2012 at gmx dot at
++ Assignee: unassigned at gcc dot gnu.org Reporter: HZ2012 at gmx dot at Target Milestone: --- #include int main() { std::vector c {1,2,3,0}; while(c.size() > 0 && c.back() == 0) { auto sz = c.size() -1; c.resize(sz); } return 0; } $