[PATCHv2, C++] Warn on redefinition of builtin functions (PR c++/71973)

2016-11-19 Thread Bernd Edlinger
Hi, On 11/18/16 22:19, Jason Merrill wrote: > On 11/05/2016 12:44 PM, Bernd Edlinger wrote: >> + warning_at (DECL_SOURCE_LOCATION (newdecl), 0, >> + "declaration of %q+#D conflicts with built-in " >> + "declaration %q#D", newdecl, olddecl); > > There needs to be

Re: [PATCHv2, C++] Warn on redefinition of builtin functions (PR c++/71973)

2016-11-20 Thread Jason Merrill
OK. On Sat, Nov 19, 2016 at 6:11 AM, Bernd Edlinger wrote: > Hi, > > On 11/18/16 22:19, Jason Merrill wrote: >> On 11/05/2016 12:44 PM, Bernd Edlinger wrote: >>> + warning_at (DECL_SOURCE_LOCATION (newdecl), 0, >>> + "declaration of %q+#D conflicts with built-in " >>> +

Re: [PATCHv2, C++] Warn on redefinition of builtin functions (PR c++/71973)

2016-11-21 Thread Jakub Jelinek
On Sat, Nov 19, 2016 at 11:11:18AM +, Bernd Edlinger wrote: > 2016-11-19 Bernd Edlinger > > PR c++/71973 > * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the > new default-enabled warning.. > * builtin-types.def (BT_CONST_TM_PTR): New primitive type.