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 20:36:34 +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 #3 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #2)
> Thinking about this further, I think we must not include <complex.h> at all
> for strict -std=c++1* modes,
Yes.
Can we get a #warning in that case which explains that including <complex.h> in
strict C++11+ mode makes no sense? Actually, <ccomplex> could also do with a
#warning explaining that it never makes sense to include it.