]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR libstdc++/79433 no #error for including TS headers with wrong -std
authorJonathan Wakely <jwakely@redhat.com>
Tue, 12 Sep 2017 14:03:06 +0000 (15:03 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 12 Sep 2017 14:03:06 +0000 (15:03 +0100)
PR libstdc++/79433
* include/Makefile.am: Remove <bits/c++14_warning.h>.
* include/Makefile.in: Regenerate.
* include/bits/c++14_warning.h: Remove.
* include/experimental/algorithm: Do not include <c++14_warning.h>.
* include/experimental/any: Likewise.
* include/experimental/array: Likewise.
* include/experimental/bits/erase_if.h: Likewise.
* include/experimental/bits/lfts_config.h: Likewise.
* include/experimental/bits/shared_ptr.h: Likewise.
* include/experimental/bits/string_view.tcc: Likewise.
* include/experimental/chrono: Likewise.
* include/experimental/deque: Likewise.
* include/experimental/filesystem: Do not include <c++0x_warning.h>.
* include/experimental/forward_list: Do not include <c++14_warning.h>.
* include/experimental/functional: Likewise.
* include/experimental/iterator: Likewise.
* include/experimental/list: Likewise.
* include/experimental/map: Likewise.
* include/experimental/memory: Likewise.
* include/experimental/numeric: Likewise.
* include/experimental/optional: Likewise.
* include/experimental/propagate_const: Likewise.
* include/experimental/ratio: Likewise.
* include/experimental/regex: Likewise.
* include/experimental/set: Likewise.
* include/experimental/string: Likewise.
* include/experimental/string_view: Likewise.
* include/experimental/system_error: Likewise.
* include/experimental/tuple: Likewise.
* include/experimental/type_traits: Likewise.
* include/experimental/unordered_map: Likewise.
* include/experimental/unordered_set: Likewise.
* include/experimental/vector: Likewise.
* testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error
line number.
* testsuite/experimental/array/neg.cc: Likewise.
* testsuite/experimental/propagate_const/assignment/move_neg.cc:
Likewise.
* testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
* testsuite/experimental/propagate_const/requirements2.cc: Likewise.
* testsuite/experimental/propagate_const/requirements3.cc: Likewise.
* testsuite/experimental/propagate_const/requirements4.cc: Likewise.
* testsuite/experimental/propagate_const/requirements5.cc: Likewise.

From-SVN: r252019

42 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/Makefile.am
libstdc++-v3/include/Makefile.in
libstdc++-v3/include/bits/c++14_warning.h [deleted file]
libstdc++-v3/include/experimental/algorithm
libstdc++-v3/include/experimental/any
libstdc++-v3/include/experimental/array
libstdc++-v3/include/experimental/bits/erase_if.h
libstdc++-v3/include/experimental/bits/lfts_config.h
libstdc++-v3/include/experimental/bits/shared_ptr.h
libstdc++-v3/include/experimental/bits/string_view.tcc
libstdc++-v3/include/experimental/chrono
libstdc++-v3/include/experimental/deque
libstdc++-v3/include/experimental/filesystem
libstdc++-v3/include/experimental/forward_list
libstdc++-v3/include/experimental/functional
libstdc++-v3/include/experimental/iterator
libstdc++-v3/include/experimental/list
libstdc++-v3/include/experimental/map
libstdc++-v3/include/experimental/memory
libstdc++-v3/include/experimental/numeric
libstdc++-v3/include/experimental/optional
libstdc++-v3/include/experimental/propagate_const
libstdc++-v3/include/experimental/ratio
libstdc++-v3/include/experimental/regex
libstdc++-v3/include/experimental/set
libstdc++-v3/include/experimental/string
libstdc++-v3/include/experimental/string_view
libstdc++-v3/include/experimental/system_error
libstdc++-v3/include/experimental/tuple
libstdc++-v3/include/experimental/type_traits
libstdc++-v3/include/experimental/unordered_map
libstdc++-v3/include/experimental/unordered_set
libstdc++-v3/include/experimental/vector
libstdc++-v3/testsuite/experimental/any/misc/any_cast_neg.cc
libstdc++-v3/testsuite/experimental/array/neg.cc
libstdc++-v3/testsuite/experimental/propagate_const/assignment/move_neg.cc
libstdc++-v3/testsuite/experimental/propagate_const/cons/move_neg.cc
libstdc++-v3/testsuite/experimental/propagate_const/requirements2.cc
libstdc++-v3/testsuite/experimental/propagate_const/requirements3.cc
libstdc++-v3/testsuite/experimental/propagate_const/requirements4.cc
libstdc++-v3/testsuite/experimental/propagate_const/requirements5.cc

index f7ffb08da0df828fb3ba1a87de5a332c4580f6f7..2948c63751496bed644a6a420881f420df6cdd31 100644 (file)
@@ -1,5 +1,50 @@
 2017-09-12  Jonathan Wakely  <jwakely@redhat.com>
 
+       PR libstdc++/79433
+       * include/Makefile.am: Remove <bits/c++14_warning.h>.
+       * include/Makefile.in: Regenerate.
+       * include/bits/c++14_warning.h: Remove.
+       * include/experimental/algorithm: Do not include <c++14_warning.h>.
+       * include/experimental/any: Likewise.
+       * include/experimental/array: Likewise.
+       * include/experimental/bits/erase_if.h: Likewise.
+       * include/experimental/bits/lfts_config.h: Likewise.
+       * include/experimental/bits/shared_ptr.h: Likewise.
+       * include/experimental/bits/string_view.tcc: Likewise.
+       * include/experimental/chrono: Likewise.
+       * include/experimental/deque: Likewise.
+       * include/experimental/filesystem: Do not include <c++0x_warning.h>.
+       * include/experimental/forward_list: Do not include <c++14_warning.h>.
+       * include/experimental/functional: Likewise.
+       * include/experimental/iterator: Likewise.
+       * include/experimental/list: Likewise.
+       * include/experimental/map: Likewise.
+       * include/experimental/memory: Likewise.
+       * include/experimental/numeric: Likewise.
+       * include/experimental/optional: Likewise.
+       * include/experimental/propagate_const: Likewise.
+       * include/experimental/ratio: Likewise.
+       * include/experimental/regex: Likewise.
+       * include/experimental/set: Likewise.
+       * include/experimental/string: Likewise.
+       * include/experimental/string_view: Likewise.
+       * include/experimental/system_error: Likewise.
+       * include/experimental/tuple: Likewise.
+       * include/experimental/type_traits: Likewise.
+       * include/experimental/unordered_map: Likewise.
+       * include/experimental/unordered_set: Likewise.
+       * include/experimental/vector: Likewise.
+       * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error
+       line number.
+       * testsuite/experimental/array/neg.cc: Likewise.
+       * testsuite/experimental/propagate_const/assignment/move_neg.cc:
+       Likewise.
+       * testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
+       * testsuite/experimental/propagate_const/requirements2.cc: Likewise.
+       * testsuite/experimental/propagate_const/requirements3.cc: Likewise.
+       * testsuite/experimental/propagate_const/requirements4.cc: Likewise.
+       * testsuite/experimental/propagate_const/requirements5.cc: Likewise.
+
        PR libstdc++/79433
        * doc/xml/manual/status_cxx2017.xml: Update feature-test macros.
        * doc/html/*: Regenerate.
index 6395f1e6ae08e03a88e66a53ecc3a775534b0595..87a41f590276768d091efa7ba9c9e56c0bb467db 100644 (file)
@@ -95,7 +95,6 @@ bits_headers = \
        ${bits_srcdir}/basic_string.tcc \
        ${bits_srcdir}/boost_concept_check.h \
        ${bits_srcdir}/c++0x_warning.h \
-       ${bits_srcdir}/c++14_warning.h \
        ${bits_srcdir}/char_traits.h \
        ${bits_srcdir}/codecvt.h \
        ${bits_srcdir}/concept_check.h \
index 745a8495da5fe9b64e0ced4caade902fd2de5b4e..7bc46060adb30888aa36558ac4f9f15f7b90eece 100644 (file)
@@ -388,7 +388,6 @@ bits_headers = \
        ${bits_srcdir}/basic_string.tcc \
        ${bits_srcdir}/boost_concept_check.h \
        ${bits_srcdir}/c++0x_warning.h \
-       ${bits_srcdir}/c++14_warning.h \
        ${bits_srcdir}/char_traits.h \
        ${bits_srcdir}/codecvt.h \
        ${bits_srcdir}/concept_check.h \
diff --git a/libstdc++-v3/include/bits/c++14_warning.h b/libstdc++-v3/include/bits/c++14_warning.h
deleted file mode 100644 (file)
index 5ead9c6..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (C) 2013-2017 Free Software Foundation, Inc.
-//
-// This file is part of the GNU ISO C++ Library.  This library is free
-// software; you can redistribute it and/or modify it under the
-// terms of the GNU General Public License as published by the
-// Free Software Foundation; either version 3, or (at your option)
-// any later version.
-
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-// GNU General Public License for more details.
-
-// Under Section 7 of GPL version 3, you are granted additional
-// permissions described in the GCC Runtime Library Exception, version
-// 3.1, as published by the Free Software Foundation.
-
-// You should have received a copy of the GNU General Public License and
-// a copy of the GCC Runtime Library Exception along with this program;
-// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
-// <http://www.gnu.org/licenses/>.
-
-/** @file bits/c++14_warning.h
- *  This is an internal header file, included by other library headers.
- *  Do not attempt to use it directly. @headername{iosfwd}
- */
-
-#ifndef _CXX14_WARNING_H
-#define _CXX14_WARNING_H 1
-
-#if __cplusplus <= 201103L
-#error This file requires compiler and library support \
-for the ISO C++ 2014 standard. This support must be enabled \
-with the -std=c++14 or -std=gnu++14 compiler options.
-#endif
-
-#endif
index 15391b1e9f27975cbfc8538e2999e6a779aa6257..4c3ff0c845900c42df1251299797c85d73fe59d7 100644 (file)
@@ -31,9 +31,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <algorithm>
 #include <experimental/bits/lfts_config.h>
index 984306dfce852ab6e234d8797b636c91f2251379..cdf7db33d5be588fef05eb259ce8f01892e05e5b 100644 (file)
@@ -31,9 +31,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <typeinfo>
 #include <new>
index 9d758f7d1490d70eb0196fed5dc444159e5888ba..2ceef5d3cfcc2c913fd4f47fbd0fd0fe1ad832e9 100644 (file)
@@ -31,9 +31,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <array>
 #include <experimental/type_traits>
index cc89ffad900d526e07c753f5228b1933271493c6..8ba59fafc2dccdccbecc75a960f27929f16a56fc 100644 (file)
@@ -32,9 +32,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 #include <experimental/bits/lfts_config.h>
 
 namespace std
index 3b832706da03ef24ca1e9f1623c811393985f265..58cabea2162f16d9292cfe9e833f72399ab7ce89 100644 (file)
@@ -27,9 +27,7 @@
  *  Do not attempt to use it directly.
  */
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 #include <bits/c++config.h>
 
 #if _GLIBCXX_INLINE_VERSION
index ef391eb641fec6cd7420ad2d39696e7a82d6d026..8f21ad8b4e5bfea70b8452d57e796fcbaab6e0ab 100644 (file)
@@ -32,9 +32,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <memory>
 #include <experimental/type_traits>
index 450a43c7876ef790dfc6171f5c379b5b0de7fd13..3a2279cac2685d7063cd419395e8f08c6b5ba433 100644 (file)
@@ -36,9 +36,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 namespace std _GLIBCXX_VISIBILITY(default)
 {
index 71e36d2d86d3e6b7984037411eda262a63242632..ad9ac8879e311e4dd82b1bf8ae3a6e600ab19b1a 100644 (file)
@@ -35,9 +35,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <chrono>
 #include <experimental/bits/lfts_config.h>
index 0180a7508839d012860ab148dd858c3a2066fba6..33cf49eed6e3ab78fd7ffdd62a078200be09f9df 100644 (file)
@@ -31,9 +31,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <deque>
 #include <algorithm>
index 7953c802cd39a253446c581d47530294e06f9379..f0b19dd29106b08eb9cc3fb7ccfa150e636cbb4c 100644 (file)
@@ -31,9 +31,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus < 201103L
-# include <bits/c++0x_warning.h>
-#else
+#if __cplusplus >= 201103L
 
 #include <experimental/bits/fs_fwd.h>
 #include <experimental/bits/fs_path.h>
index 5109cb57ade9a23e8b38d5141fa4cf415c6e92a2..36638d6226dd690b83c432c579d3d6f47c697c19 100644 (file)
@@ -31,9 +31,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <forward_list>
 #include <experimental/memory_resource>
index 3327399b4d4fcdf8c52b676dd3b83081d7464166..0cac5cf40fd0b70f98015c8a33274415dc86292e 100644 (file)
@@ -31,9 +31,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <functional>
 #include <tuple>
index 553009c92b04dfc5f6bf8161ce6ec60a0c7a8df8..78ef387aa10ee682969578638e2b38ac6a8ee9ef 100644 (file)
@@ -35,9 +35,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <iterator>
 #include <iosfwd>
index 94663ad030a0af05bc8e087d444848edf5796da7..f429b3d3ce89feafafe2d5815710d0bb71a795ca 100644 (file)
@@ -31,9 +31,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <list>
 #include <experimental/memory_resource>
index 85055967fa5e7f674b418836acf45e4362de824f..2c816b7687e47a81287de53d5a9dba2b9a34a57a 100644 (file)
@@ -31,9 +31,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <map>
 #include <experimental/bits/erase_if.h>
index 33a154bf50c320bd5014dc10755dca2114b717b9..83c3b101c09153d75fc6ada98662aeae9b5622e8 100644 (file)
@@ -35,9 +35,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <memory>
 #include <type_traits>
index 33e7b55ef90b425f1697818353ca773ea65bbe2a..c8597fce06d9e8e5d1fd12c39a0fdae551dc9ddd 100644 (file)
@@ -35,9 +35,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <numeric>
 #include <experimental/type_traits>
index d4c58a600bfba2b21a891d14160c8c1d0b51dc3b..c405bc07d0549f4e9b41aafd8d101198024719ca 100644 (file)
@@ -41,9 +41,7 @@
  * between different GCC releases </STRONG> for these features.
  */
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <utility>
 #include <type_traits>
index 639f21a979e3fa1288404aa41978a4501decfb0b..7cc80cec427f64ec2b526d086f73e41098c25e9b 100644 (file)
@@ -31,9 +31,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <type_traits>
 #include <bits/functional_hash.h>
index bc2d0f267b29f0fb66dd9ba3567821856092b020..179933c8a4217369149fbb34b80ac61e897ae339 100644 (file)
@@ -35,9 +35,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <ratio>
 #include <experimental/bits/lfts_config.h>
index bfcaf6b85c3e45e378f548af247686459536f50f..15fb1084ad72cff04ecf7287dcfa8109de132d16 100644 (file)
@@ -31,9 +31,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <regex>
 #include <experimental/string>
index fba136c90c5559a92fa74f53ea7798d2c01fdc49..9437966f24518f2eb742ee747c063fc32418aba9 100644 (file)
@@ -31,9 +31,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <set>
 #include <experimental/bits/erase_if.h>
index 893013b1869cbc36bd533393eeb16cc13c801da7..d35f108725c31459cdc62c8cc21704f4eb2122f7 100644 (file)
@@ -31,9 +31,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <string>
 #include <algorithm>
index 2e8e7cda62da67d97a6639df5727ff99b4682dae..f05f152302a13451c7fc4c110d7e4febaec7267f 100644 (file)
@@ -35,9 +35,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <string>
 #include <limits>
index 2bad7503b2f0036964cce5d0fa367b0bdb957e8c..a694f57c9caf534d983026b268c489208a5d166d 100644 (file)
@@ -35,9 +35,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <system_error>
 #include <experimental/bits/lfts_config.h>
index a12fa0a3327847aa2b22463f36fbaa244e586a3a..324dc47e795fa39a607ec265752d49c857130e47 100644 (file)
@@ -31,9 +31,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <tuple>
 #include <bits/invoke.h>
index 3885c168e3174f237f0aa8a40cb2428c48d3f46d..f9a5c1dfb0e66689409f54a3c87aa8b78696a746 100644 (file)
@@ -35,9 +35,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <type_traits>
 #include <experimental/bits/lfts_config.h>
index cddd5b3d78c154f4e41f9b4b46e29b3a92404bb0..daefb399baf140f2a114d9e8d613e5fdea6f70a2 100644 (file)
@@ -31,9 +31,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <unordered_map>
 #include <experimental/bits/erase_if.h>
index 816327f9ba7207366dd90f2c5b2100b137f1e28a..961aff9037f7a100053dfc866d7c27a4007bf07d 100644 (file)
@@ -31,9 +31,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <unordered_set>
 #include <experimental/bits/erase_if.h>
index e77dd2e477106efe7389d6e40bf528a88f9d7d57..48c75fa5310e4ee5c4b289eb653fddbc0f23c7fb 100644 (file)
@@ -31,9 +31,7 @@
 
 #pragma GCC system_header
 
-#if __cplusplus <= 201103L
-# include <bits/c++14_warning.h>
-#else
+#if __cplusplus >= 201402L
 
 #include <vector>
 #include <algorithm>
index 697b0f03e2b1894c63961ead88ef50e62851aa17..81eda331fc875cbbb513ab1765705767b11b3905 100644 (file)
@@ -25,5 +25,5 @@ void test01()
   using std::experimental::any_cast;
 
   const any y(1);
-  any_cast<int&>(y); // { dg-error "qualifiers" "" { target { *-*-* } } 359 }
+  any_cast<int&>(y); // { dg-error "qualifiers" "" { target { *-*-* } } 357 }
 }
index 3963287f2575a8694f449af38386c0333dc992fb..e531678122a7c7ec0937a78b613411ac5a931c62 100644 (file)
@@ -24,5 +24,5 @@ int main()
 {
   int dummy;
   auto bad = std::experimental::make_array(std::ref(dummy));
-  // { dg-error "explicit target type" "" { target *-*-* } 78 }
+  // { dg-error "explicit target type" "" { target *-*-* } 76 }
 }
index 040e30b81a2b843230224f97a28a8137f0e15d48..a0cc0e9f43425cde08a7a9a59fefb0aeb3af33e6 100644 (file)
@@ -25,7 +25,7 @@
 using std::experimental::propagate_const;
 using std::unique_ptr;
 
-// { dg-error "no type" "" { target *-*-* } 162 }
+// { dg-error "no type" "" { target *-*-* } 160 }
 
 int main()
 {
index 743658f5f9e15f02b65a2654362be3dcca5f0735..ac71a29cf56cb40ebe62c5d93d2669b3342252ef 100644 (file)
 using std::experimental::propagate_const;
 using std::unique_ptr;
 
-// { dg-error "no type" "" { target *-*-* } 120 }
-// { dg-error "no type" "" { target *-*-* } 127 }
-// { dg-error "no type" "" { target *-*-* } 136 }
-// { dg-error "no type" "" { target *-*-* } 145 }
+// { dg-error "no type" "" { target *-*-* } 118 }
+// { dg-error "no type" "" { target *-*-* } 125 }
+// { dg-error "no type" "" { target *-*-* } 134 }
+// { dg-error "no type" "" { target *-*-* } 143 }
 
 int main()
 {
index 6f8fef80aca801510c5611fc477790a534d6cd39..626805ecd46c6328657682f5bfd0ca66e7aaa9c6 100644 (file)
@@ -21,9 +21,9 @@
 
 using std::experimental::propagate_const;
 
-// { dg-error "requires a class or a pointer to an object type" "" { target *-*-* } 107 }
-// { dg-error "not a pointer-to-object type" "" { target *-*-* } 68 }
-// { dg-error "forming pointer to reference type" "" { target *-*-* } 189 }
-// { dg-error "forming pointer to reference type" "" { target *-*-* } 215 }
+// { dg-error "requires a class or a pointer to an object type" "" { target *-*-* } 105 }
+// { dg-error "not a pointer-to-object type" "" { target *-*-* } 66 }
+// { dg-error "forming pointer to reference type" "" { target *-*-* } 187 }
+// { dg-error "forming pointer to reference type" "" { target *-*-* } 213 }
 
 propagate_const<void*> test1;
index 0498b0bafa421f1381fac2b6be6a536518eddbff..74ed5d35c4ea534179425ed94ef3563f190e14f0 100644 (file)
@@ -21,6 +21,6 @@
 
 using std::experimental::propagate_const;
 
-// { dg-error "requires a class or a pointer to an object type" "" { target *-*-* } 107 }
+// { dg-error "requires a class or a pointer to an object type" "" { target *-*-* } 105 }
 
 propagate_const<void (*)()> test1;
index d662af82fee12108908c32d2df0696a11cd52393..4182c0862f396f2feaf801bf514c2fb923e2b713 100644 (file)
@@ -21,8 +21,8 @@
 
 using std::experimental::propagate_const;
 
-// { dg-error "requires a class or a pointer to an object type" "" { target *-*-* } 107 }
-// { dg-error "invalid type" "" { target *-*-* } 68 }
-// { dg-error "uninitialized reference member" "" { target *-*-* } 114 }
+// { dg-error "requires a class or a pointer to an object type" "" { target *-*-* } 105 }
+// { dg-error "invalid type" "" { target *-*-* } 66 }
+// { dg-error "uninitialized reference member" "" { target *-*-* } 112 }
 
 propagate_const<int&> test1; // { dg-error "use of deleted function" }
index adf0809858ac784ac8528cbadc75c93617f5cf45..07a4c69c1479a8282963a59eadc6e466174ea50a 100644 (file)
@@ -21,6 +21,6 @@
 
 using std::experimental::propagate_const;
 
-// { dg-error "requires a class or a pointer to an object type" "" { target *-*-* } 107 }
+// { dg-error "requires a class or a pointer to an object type" "" { target *-*-* } 105 }
 
 propagate_const<int[1]> test1;