[Bug c/71479] error on __builtin_add_overflow with bool or enum pointer as last argument
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 15 23:34:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71479
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|rejects-valid |diagnostic
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
Known to fail|7.0 |
--- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> ---
Resolving as a dupe of 66943 (the error is correct).
Trunk (GCC 7.0) prints:
t.c: In function ‘f’:
t.c:4:33: error: argument 3 in call to function ‘__builtin_add_overflow’ has
pointer to boolean type
__builtin_add_overflow (0, 0, &b);
^
t.c:7:33: error: argument 3 in call to function ‘__builtin_add_overflow’ has
pointer to enumerated type
__builtin_add_overflow (0, 0, &e);
^
*** This bug has been marked as a duplicate of bug 66943 ***
More information about the Gcc-bugs
mailing list