[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: standards/51044: NetBSD cdefs.h defines __func__ incompatibly with C99
The following reply was made to PR standards/51044; it has been noted by GNATS.
From: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
Cc: standards-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
Subject: Re: standards/51044: NetBSD cdefs.h defines __func__ incompatibly
Date: Tue, 5 Apr 2016 16:12:28 +0200
On Tue, Apr 05, 2016 at 01:45:01PM +0000, Bruce Lilly wrote:
> Anybody compiling with gcc or (ostensibly) gcc-compatible compilers who
> cares about __func__ with pre-C99 code is probably already using the
> documented gcc work-around, and doesn't need to have cdefs.h foul that up.
It doesn't, if your code is well written. Defining anything in the
implementation namespace before including system headers is undefined
behavior. If you do it afterwards, it will just work or at worse, you
will have to #undef __func__ first to avoid warnings. That's perfectly
> Clang also has an issue w/ incompatibility with gcc, and that has been
> reported as clang/llvm bug #27189.
I don't see any bug in that either.
Main Index |
Thread Index |