[Bug c++/53462] template method constant folding division-by-zero warning within dead code

2012-05-23 Thread rudick at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53462 --- Comment #2 from rudick at gmail dot com 2012-05-23 18:27:43 UTC --- It looks related, but are you sure its a duplicate (if the fix was to turn off all such warnings)? I.e., if the code weren't made dead by being short-circuited by &q

[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
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rudick at gmail dot com Target Milestone: --- E.g. w/ -std=c++11 #include int main() { enum: unsigned int32_t { FOO, BAR } foobar = FOO; std::cout << ((time(n

[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
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rudick at gmail dot com Target Milestone: --- g++ -O2 -Wextra -Wall -Werror -Wextra vectorBackWrite.cpp #include #include #include extern FILE* f; void triggerBug

[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++/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