Hello, consider following code:
https://godbolt.org/g/UN8xTy <https://godbolt.org/g/n3Rt9D>

I do not understand, why overflow warning is here, there is no explicite
int in this code.
When removing constexpr, warning disappears, when changing to:

static constexpr uint8_t b = uint8_t{~a};

warning disappears.

Could someone explain it to me?
_______________________________________________
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users

Reply via email to