* doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
/c-family
2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
* c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
/testsuite
2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
* g++.dg/cpp1y/cxx1y_macro.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198249
138bc75d-0d04-0410-961f-
82ee72b054a4
+2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
+
2013-04-24 Marek Polacek <polacek@redhat.com>
* tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
+2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
+
2013-04-12 Jakub Jelinek <jakub@redhat.com>
* c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
cpp_define (pfile, "__DEPRECATED");
if (flag_rtti)
cpp_define (pfile, "__GXX_RTTI");
- if (cxx_dialect >= cxx0x)
+ if (cxx_dialect == cxx0x)
cpp_define (pfile, "__GXX_EXPERIMENTAL_CXX0X__");
+ if (cxx_dialect >= cxx1y)
+ cpp_define (pfile, "__GXX_EXPERIMENTAL_CXX1Y__");
}
/* Note that we define this for C as well, so that we know if
__attribute__((cleanup)) will interface with EH. */
features are experimental, and may change or be removed in future
versions of GCC.
+@item __GXX_EXPERIMENTAL_CXX1Y__
+This macro is defined when compiling a C++ source file with the option
+@option{-std=c++1y} or @option{-std=gnu++1y}. It indicates that some
+features likely to be included in C++1y are available. Note that these
+features are experimental, and may change or be removed in future
+versions of GCC.
+
@item __GXX_WEAK__
This macro is defined when compiling a C++ source file. It has the
value 1 if the compiler will use weak symbols, COMDAT sections, or
2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
+ * g++.dg/cpp1y/cxx1y_macro.C: New.
+
+2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
+
PR c++/56970
* g++.dg/cpp0x/sfinae45.C: New.
--- /dev/null
+// { dg-options "-std=c++1y" }
+
+#ifndef __GXX_EXPERIMENTAL_CXX1Y__
+#error
+#endif