++
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
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
++
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;
}
$