[Bug bootstrap/51705] [4.7 Regression] FreeBSD uses unsupported C++11 features when __cplusplus == 201103L

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jan 6 14:12:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51705

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bkorb at gnu dot org, jason
                   |                            |at gcc dot gnu.org,
                   |                            |ljrittle at acm dot org

--- Comment #24 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-06 14:10:51 UTC ---
(In reply to comment #16)
> I have no problem with -std=c++11 enabling C++11 features and evening
> trying to apply a strict interpretation of C++11.  But, if g++ does
> not support the entire language at 201103L, then it should not advertise
> that it does.  

I sympathize with this position, and put off changing the value for that
reason.  But other compilers have started to define __cplusplus to the 201103L
as well even though they don't implement the whole standard either, since there
is no other portable way to distinguish between which standard is being
targeted.  So we decided to follow suit.  I think fixincludes is the right
answer here.

Adding FreeBSD and fixincludes maintainers to CC.



More information about the Gcc-bugs mailing list