]> 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>
Mon, 22 Oct 2018 08:47:52 +0000 (09:47 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 22 Oct 2018 08:47:52 +0000 (09:47 +0100)
Backport from mainline
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.

From-SVN: r265374

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 c0b73cd6058608d80e7e7cea9a10b9e069ef892d..68e4f1e3ed47eae510cafe569e395a524d1cc1b5 100644 (file)
@@ -1,3 +1,53 @@
+2018-10-22  Jonathan Wakely  <jwakely@redhat.com>
+
+       Backport from mainline
+       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.
+
 2018-10-18  Jonathan Wakely  <jwakely@redhat.com>
 
        Backport from mainline
index 85b22a606d54010435b992d256ed0c0b47e6b5c4..500a9aa7bb90571a89fa57dbffce5188728a526e 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 d940fcbdf84a932e70e0ff66061bd26d5d48ddc5..cc571a417ea70b77c871fa8fbd27832997b043aa 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 a7ab0e84c12dc7e60f7a36ab175c430745ed9d67..f7c9fbe0229f5e8e8146da50f80036b969c21bc9 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 36c0680c25a6fb73eb8f823e17c5345c7b098df1..b1d11398b793fe10be3e33ef8c80f95cd24c9f50 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 11cb924e087b35d90887b4fec14e88fc67f4b6d8..09751a4204cc9bb3a3d38b54302a12238068eb9f 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 7dc47dbb3ebcd78e912feb561143be0fc06ed7be..2a5a520539a98552cad1808c369ce9a9119e8045 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 a9faa47a842fd03e9cd8cbb8bed165f76d863399..cef3dc6d8effa43d0e222ab9d5f73bd2cfc66969 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 27f22d23618194a935be9f88f598614340e1cbbd..bbeccd9b0101f9008b521e914f48e07f8a30d940 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 30968fc6b838574a7b00676b234d5a43f2154501..ea0a49c1b035d2cc5b7b8dde1a6588c8732ce521 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 4247c9df746e007db67b4ba464f0a87a86fcdc9c..d8b6b3305765d0e25f0785da74f25b96c0245ba4 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 c92476f915d24d65db5199e3167866a36f615449..5900648b8aba33f26b93101b96f32c604d6cf3ee 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 2f353693dbe615943247a01ec04663fb2007d8ed..0c8d5b0236266a9ed327e4fc921ec4fe9abb8729 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 1c835aca07ef040a2da8066f27e9be31c35b3530..f95ca40f9fd1a4689e88eb17dfc41c6fb627c5e5 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 4639e6f6cb3c2c19e832eba68dbcd256024c77f0..96ecd064519459f3184d65f3a2ce56d5429e6ace 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 8a8395da759cd7a1e090d310a8142f9745a85237..487b27226ceb57ac6fa5e41227a57005239ac3f7 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 9409431c4d8bd606c06e6af9402ae62f74dd43e1..abde37896ab923d906ea366c0e21595298398047 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 2bbc1bd5a11cad691023b80d6b342fc61977113a..77887457cd1d05ca82af0c2411ad1a270ae0ed38 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 7467674db81d3110058600afba79f69af7b27199..56d56ac01044ab65289babbad5ffa7b1d4df592f 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 b7b8207069f78a534fffb3a24092197cf506827a..c63bd90765d452bbeeeaf98589ab472f8b502770 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 197a1fc7691229a78a643b1357c8d02501d8ab2b..12b9599f1d88929f4e9e3683cd961999b69edbdb 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 719e17aa3d0c215320ca96fe752cc4efea4e95d7..ed9e8eb3dd88b1a509390f26d38f8f7d22a991bc 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 ffbae76ca796055eac87ab8cb6a38e50a953ae80..708eb7af1f1f4ade159b2c83c238df4014029267 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 f0b0dfacfe909c2684ff29cb79d77a3241eb83ca..ba4d02cc69a120d528b3e6d5a94c20077a87f962 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 a10617bb2a9e1042a954bac58657950070ec956c..87d6aa65a47e1e9e8461359499c61ed12dffcebd 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 ff3777c31e2b9446daf975b9c83c0a239de10b62..9e92270c79dc732b2cd33184393e4adf39a943a9 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 2235a51ea5deaf2bc55ca4dfe29b15973801abb2..cdc23d17a7a6d4e327b91c66c17415f0d46285b2 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 2b4855dba72fc5db2054c557880c15181a37f31d..085b43b7f6ace459d2d4122e47a6bb261277b7cd 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 879636eecd8d0aa553f69449dbf05286d55a28ed..13d7bf7bd2a5884a969ff41ec26fde5124339829 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 7ec06308ba968cc8d92fdded661cafc50cd51b9b..605a92e86fecd92c63d3916d0ebbd81cdbca7538 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 fbc44b267b520b683ae7f40954f9c608da0dc22c..8b640a2ad4f157ce4926527578e6f72d6a5af3aa 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 3c8fe255275fdced6a5a3cdef7bb78fda6b6c865..1d78c52d446f0cd925dd560feb5f9fcac639fe69 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 b75a3bc7ce4301b5be6ff10640fdc3840f44557f..5d007a22c64ff42f7bacdb4fdae480e675ee1fb4 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;