This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/82417] Macros from <complex.h> defined in C++11
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 03 Oct 2017 16:03:53 +0000
- Subject: [Bug libstdc++/82417] Macros from <complex.h> defined in C++11
- Auto-submitted: auto-generated
- References: <bug-82417-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82417
--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #0)
> The C++11 standard says that <complex.h> should just include the C++
> <complex> header and completely ignore the C library's header.
I am very surprised that nobody has cared enough to get the standard fixed. But
I can't complain, I didn't write a proposal either.
> For C++11 mode we should #undef the macros that <complex.h> defines with
> non-reserved names, and maybe consider not including <complex.h> at all for
> -std=c++1* modes.
I guess so.