public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/51776] New: fixincludes hacks around a C++ deficiency
@ 2012-01-06 16:09 bkorb at gnu dot org
  2012-01-11 16:26 ` [Bug preprocessor/51776] " andreast at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: bkorb at gnu dot org @ 2012-01-06 16:09 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51776
           Summary: fixincludes hacks around a C++ deficiency
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: bkorb@gnu.org


a new fixinclude hack is about to be added to paper over the fact that
g++ -std=c++11 claims full compliance, but is slightly deficient.
Once that is fixed, this new hack should be removed.  It will be
approximately thus:

+/*
+ * g++ -std=c++11 defines __cplusplus to 201103L, but does not
+ * properly support [[noreturn]].
+ */
+fix = {
+    hackname  = cdef_cplusplus;
+    files     = sys/cdefs.h;
+    select    = '\[\[noreturn\]\]';
+    c_fix     = format;
+    c_fix_arg = "__attribute__((__noreturn__))";
+    test_text = "#define _Noreturn     [[noreturn]]";
+};

CF: bug #51705 comment #25


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

end of thread, other threads:[~2022-05-24 14:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-06 16:09 [Bug preprocessor/51776] New: fixincludes hacks around a C++ deficiency bkorb at gnu dot org
2012-01-11 16:26 ` [Bug preprocessor/51776] " andreast at gcc dot gnu.org
2012-05-30 13:48 ` redi at gcc dot gnu.org
2012-10-08 17:46 ` bkorb at gnu dot org
2013-05-17 10:25 ` skannan at redhat dot com
2015-03-08 19:49 ` bkorb at gnu dot org
2022-05-24 14:34 ` egallager 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).