[Bug c/71479] error on __builtin_add_overflow with bool or enum pointer as last argument

2017-02-15 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71479 --- Comment #7 from Martin Sebor --- Wrong dupe id. *** This bug has been marked as a duplicate of bug 66938 ***

[Bug c/71479] error on __builtin_add_overflow with bool or enum pointer as last argument

2017-02-15 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71479 Martin Sebor changed: What|Removed |Added Keywords|rejects-valid |diagnostic Status|UNCONFIRMED

[Bug c/71479] error on __builtin_add_overflow with bool or enum pointer as last argument

2016-06-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71479 --- Comment #5 from Jakub Jelinek --- BTW, for __builtin_add_overflow_p with _Bool as last argument (which isn't rejected, going to fix that momentarily) we don't emit the expected test whether the result is 0/1, but whether it fits 8 bits unsign

[Bug c/71479] error on __builtin_add_overflow with bool or enum pointer as last argument

2016-06-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71479 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #4

[Bug c/71479] error on __builtin_add_overflow with bool or enum pointer as last argument

2016-06-09 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71479 --- Comment #3 from Martin Sebor --- (In reply to Marek Polacek from comment #1) > Dup of PR66938? You're right, bug 66938 points out the same problem. I leave it to you to decide which one to close as a dupe (this one is broader in mentioning

[Bug c/71479] error on __builtin_add_overflow with bool or enum pointer as last argument

2016-06-09 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71479 Martin Sebor changed: What|Removed |Added Keywords||rejects-valid Known to fail|

[Bug c/71479] error on __builtin_add_overflow with bool or enum pointer as last argument

2016-06-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71479 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment