This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/82417] Macros from <complex.h> defined in C++11


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]