[Bug c++/102804] template matching fails w/ false ambiguity on ternary expressions with enums class defined with unsigned typdef

2021-10-18 Thread rudick at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102804 --- Comment #5 from Todd Rudick --- Richard, is there a way to represent the part of this that is a bug? Presumably accepting the construct but having it break template specialization with an error that can be arbitrarily disconnected from the

[Bug tree-optimization/102805] at -O2, spurious stringop-overflow warning writing to std::vector::back()

2021-10-17 Thread rudick at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102805 --- Comment #2 from rudick at gmail dot com --- Interesting. if (f && end > start && start < 100 && end < 100) { & I still get the warning though

[Bug c++/102805] New: at -O2, spurious stringop-overflow warning writing to std::vector::back()

2021-10-17 Thread rudick at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102805 Bug ID: 102805 Summary: at -O2, spurious stringop-overflow warning writing to std::vector::back() Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: no

[Bug c++/102804] New: template matching fails w/ false ambiguity on ternary expressions with enums

2021-10-17 Thread rudick at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102804 Bug ID: 102804 Summary: template matching fails w/ false ambiguity on ternary expressions with enums Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: