This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/1773] __cplusplus defined to 1, should be 199711L
- From: "marc.glisse at normalesup dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 7 Mar 2011 19:22:16 +0000
- Subject: [Bug libstdc++/1773] __cplusplus defined to 1, should be 199711L
- Auto-submitted: auto-generated
- References: <bug-1773-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1773
--- Comment #74 from Marc Glisse <marc.glisse at normalesup dot org> 2011-03-07 19:21:16 UTC ---
(In reply to comment #73)
> > asking him to play a bit with the
> > straightforward cpp_init_builtins patch defining __cplusplus to 199711 for
> > c++98 (and 201103 in c++0x mode?)
>
> I've used the following patch and gave it a try on Solaris 8 to 11, both
> SPARC and x86:
This can't work. As explained in comment #70, there would be several issues to
fix first (none very hard, but it would take time). An alternate solution that
would not require as much work is suggested in comment #56. I have no idea how
well/bad that would work out. Yet another one is to heavily fixinclude the
solaris headers.