public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/51705] New: Build infrastructure should not use -std=c++0x until g++ properly supports it
@ 2011-12-29 19:34 ed at 80386 dot nl
  2011-12-29 19:42 ` [Bug libstdc++/51705] " redi at gcc dot gnu.org
                   ` (50 more replies)
  0 siblings, 51 replies; 52+ messages in thread
From: ed at 80386 dot nl @ 2011-12-29 19:34 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51705
           Summary: Build infrastructure should not use -std=c++0x until
                    g++ properly supports it
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ed@80386.nl


FreeBSD recently added support for C11 and C++11 keywords to its sys/cdefs.h
file. This header file is used by FreeBSD header files and source code to write
code that is portable across different compiler versions.

GCC 4.7's build system adds -std=c++0x to the compiler to build libstdc++. This
means that code is built with __cplusplus == 201103L. This is wrong, because
now sys/cdefs.h starts to use C++11 constructs such as [[noreturn]].
[[noreturn]] is not supported by GCC yet.

Essentially GCC is free to announce __cplusplus == 201103L for its experimental
C++11 support, but the C++11 support should not be used during its own
compilation step if it's not finished yet.

Alternatively, this could be fixed by simply implementing [[noreturn]], of
course, but that's a different issue altogether.


^ permalink raw reply	[flat|nested] 52+ messages in thread

end of thread, other threads:[~2012-01-11 18:36 UTC | newest]

Thread overview: 52+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-29 19:34 [Bug libstdc++/51705] New: Build infrastructure should not use -std=c++0x until g++ properly supports it ed at 80386 dot nl
2011-12-29 19:42 ` [Bug libstdc++/51705] " redi at gcc dot gnu.org
2011-12-29 19:56 ` ed at 80386 dot nl
2011-12-29 21:13 ` chris at bubblescope dot net
2011-12-29 21:40 ` sgk at troutmask dot apl.washington.edu
2011-12-29 21:45 ` redi at gcc dot gnu.org
2011-12-29 22:07 ` ed at 80386 dot nl
2011-12-29 22:16 ` sgk at troutmask dot apl.washington.edu
2011-12-29 22:27 ` chris at bubblescope dot net
2011-12-29 22:30 ` [Bug bootstrap/51705] FreeBSD uses unsupported C++11 features when __cplusplus == 201103L redi at gcc dot gnu.org
2011-12-29 22:40 ` sgk at troutmask dot apl.washington.edu
2011-12-29 23:06 ` ed at 80386 dot nl
2011-12-29 23:13 ` sgk at troutmask dot apl.washington.edu
2011-12-29 23:31 ` redi at gcc dot gnu.org
2011-12-29 23:55 ` ed at 80386 dot nl
2011-12-30  0:12 ` sgk at troutmask dot apl.washington.edu
2011-12-30  4:02 ` kargl at gcc dot gnu.org
2011-12-30  6:08 ` sgk at troutmask dot apl.washington.edu
2011-12-30 10:47 ` andreast at gcc dot gnu.org
2011-12-30 10:49 ` ed at 80386 dot nl
2011-12-30 11:32 ` andreast at gcc dot gnu.org
2011-12-30 17:30 ` sgk at troutmask dot apl.washington.edu
2011-12-30 18:19 ` andreast at gcc dot gnu.org
2011-12-30 19:34 ` andreast at gcc dot gnu.org
2011-12-30 19:41 ` sgk at troutmask dot apl.washington.edu
2012-01-02 10:24 ` [Bug bootstrap/51705] [4.7 Regression] " rguenth at gcc dot gnu.org
2012-01-06 14:12 ` jason at gcc dot gnu.org
2012-01-06 15:10 ` bkorb at gnu dot org
2012-01-06 15:23 ` sgk at troutmask dot apl.washington.edu
2012-01-06 15:30 ` jakub at gcc dot gnu.org
2012-01-06 15:34 ` redi at gcc dot gnu.org
2012-01-06 15:59 ` andreast at gcc dot gnu.org
2012-01-06 16:11 ` bkorb at gnu dot org
2012-01-06 16:14 ` bkorb at gnu dot org
2012-01-06 16:15 ` sgk at troutmask dot apl.washington.edu
2012-01-09 20:13 ` sgk at troutmask dot apl.washington.edu
2012-01-09 20:33 ` andreast at gcc dot gnu.org
2012-01-09 21:34 ` sgk at troutmask dot apl.washington.edu
2012-01-09 21:47 ` chris at bubblescope dot net
2012-01-09 22:12 ` bkorb at gnu dot org
2012-01-09 22:31 ` sgk at troutmask dot apl.washington.edu
2012-01-09 22:37 ` ed at 80386 dot nl
2012-01-09 22:47 ` chris at bubblescope dot net
2012-01-09 22:50 ` ed at 80386 dot nl
2012-01-09 22:52 ` joseph at codesourcery dot com
2012-01-09 23:01 ` chris at bubblescope dot net
2012-01-10 13:46 ` jason at gcc dot gnu.org
2012-01-11  7:47 ` andreast at gcc dot gnu.org
2012-01-11  7:51 ` andreast at gcc dot gnu.org
2012-01-11 14:32 ` bkorb at gnu dot org
2012-01-11 16:24 ` sgk at troutmask dot apl.washington.edu
2012-01-11 18:36 ` andreast at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).