This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/60491] Macros defined in sys/sysmacros.h pulled in by <iterator> even in -std=c++11
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 10 Mar 2014 19:01:14 +0000
- Subject: [Bug libstdc++/60491] Macros defined in sys/sysmacros.h pulled in by <iterator> even in -std=c++11
- Auto-submitted: auto-generated
- References: <bug-60491-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60491
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Will Mitchell from comment #0)
> I'm filing again because my expectation is that -std=c++11 wouldn't pull in
> these macros.
I don't know why you thought -std=c++11 would change anything :-)
To fix this we need to stop defining _GNU_SOURCE unconditionally, which I'm
going to work on after the 4.9 release.
*** This bug has been marked as a duplicate of bug 51749 ***