[Bug c++/82466] Missing warning for re-declaration of built-in function as variable

2017-10-24 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82466 Paolo Carlini changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/82466] Missing warning for re-declaration of built-in function as variable

2017-10-24 Thread paolo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82466 --- Comment #7 from paolo at gcc dot gnu.org --- Author: paolo Date: Tue Oct 24 19:01:03 2017 New Revision: 254057 URL: https://gcc.gnu.org/viewcvs?rev=254057&root=gcc&view=rev Log: 2017-10-24 Paolo Carlini PR c++/82466 * doc

[Bug c++/82466] Missing warning for re-declaration of built-in function as variable

2017-10-08 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82466 Paolo Carlini changed: What|Removed |Added Status|NEW |ASSIGNED CC|paolo.carlin

[Bug c++/82466] Missing warning for re-declaration of built-in function as variable

2017-10-08 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82466 --- Comment #5 from Bernd Edlinger --- Yes, and I think the C warning should use that option as well.

[Bug c++/82466] Missing warning for re-declaration of built-in function as variable

2017-10-07 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82466 --- Comment #3 from Paolo Carlini --- Yes. Recycling the warning-name that you added seems fine, but we should probably extend the description to something like: "Warn if a built-in function is declared with the wrong signature or as non-function

[Bug c++/82466] Missing warning for re-declaration of built-in function as variable

2017-10-07 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82466 Paolo Carlini changed: What|Removed |Added CC||paolo.carlini at oracle dot com --- Comm

[Bug c++/82466] Missing warning for re-declaration of built-in function as variable

2017-10-07 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82466 --- Comment #2 from Bernd Edlinger --- Thanks for looking at this. I think your patch is fine. My thought was that it could also be enabled by OPT_Wbuiltin_declaration_mismatch, which is default-enabled but can be disabled in the test case, if n

[Bug c++/82466] Missing warning for re-declaration of built-in function as variable

2017-10-07 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82466 --- Comment #1 from Paolo Carlini --- Thanks. I don't think there is *much* more than the below to it: Index: decl.c === --- decl.c (revision 253509) +++ decl.c (working c

[Bug c++/82466] Missing warning for re-declaration of built-in function as variable

2017-10-07 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82466 Jonathan Wakely changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIR