From be515b4ce0891e0019511d65c2073e0ebf9f9309 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Sat, 20 Oct 2018 17:21:19 +0000 Subject: [PATCH] *.C: Use target c++17 instead of explicit dg-options. * g++.dg/*.C: Use target c++17 instead of explicit dg-options. * lib/g++-dg.exp: Don't test C++11 by default. Add C++17 to the list of default stds to test. From-SVN: r265343 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/g++.dg/concepts/alias1.C | 3 ++- gcc/testsuite/g++.dg/concepts/alias2.C | 3 ++- gcc/testsuite/g++.dg/concepts/alias3.C | 3 ++- gcc/testsuite/g++.dg/concepts/alias4.C | 3 ++- gcc/testsuite/g++.dg/concepts/auto1.C | 3 ++- gcc/testsuite/g++.dg/concepts/auto3.C | 3 ++- gcc/testsuite/g++.dg/concepts/auto4.C | 3 ++- gcc/testsuite/g++.dg/concepts/class-deduction1.C | 3 ++- gcc/testsuite/g++.dg/concepts/class-deduction2.C | 3 ++- gcc/testsuite/g++.dg/concepts/class.C | 3 ++- gcc/testsuite/g++.dg/concepts/class1.C | 3 ++- gcc/testsuite/g++.dg/concepts/class2.C | 3 ++- gcc/testsuite/g++.dg/concepts/class3.C | 3 ++- gcc/testsuite/g++.dg/concepts/class4.C | 3 ++- gcc/testsuite/g++.dg/concepts/class5.C | 3 ++- gcc/testsuite/g++.dg/concepts/class6.C | 3 ++- gcc/testsuite/g++.dg/concepts/constrained-parm.C | 3 ++- gcc/testsuite/g++.dg/concepts/debug1.C | 3 ++- gcc/testsuite/g++.dg/concepts/decl-diagnose.C | 3 ++- gcc/testsuite/g++.dg/concepts/deduction-constraint1.C | 3 ++- gcc/testsuite/g++.dg/concepts/diagnostic1.C | 3 ++- gcc/testsuite/g++.dg/concepts/disjunction1.C | 3 ++- gcc/testsuite/g++.dg/concepts/dr1430.C | 3 ++- gcc/testsuite/g++.dg/concepts/equiv.C | 3 ++- gcc/testsuite/g++.dg/concepts/equiv2.C | 4 ++-- gcc/testsuite/g++.dg/concepts/explicit-inst1.C | 3 ++- gcc/testsuite/g++.dg/concepts/explicit-inst2.C | 3 ++- gcc/testsuite/g++.dg/concepts/explicit-inst3.C | 3 ++- gcc/testsuite/g++.dg/concepts/explicit-inst4.C | 3 ++- gcc/testsuite/g++.dg/concepts/explicit-spec1.C | 4 ++-- gcc/testsuite/g++.dg/concepts/explicit-spec2.C | 3 ++- gcc/testsuite/g++.dg/concepts/explicit-spec3.C | 3 ++- gcc/testsuite/g++.dg/concepts/explicit-spec4.C | 4 ++-- gcc/testsuite/g++.dg/concepts/explicit-spec5.C | 3 ++- gcc/testsuite/g++.dg/concepts/explicit-spec6.C | 3 ++- gcc/testsuite/g++.dg/concepts/expression.C | 4 ++-- gcc/testsuite/g++.dg/concepts/expression2.C | 3 ++- gcc/testsuite/g++.dg/concepts/expression3.C | 3 ++- gcc/testsuite/g++.dg/concepts/feature-macro.C | 3 ++- gcc/testsuite/g++.dg/concepts/fn-concept1.C | 3 ++- gcc/testsuite/g++.dg/concepts/fn-concept2.C | 3 ++- gcc/testsuite/g++.dg/concepts/fn1.C | 3 ++- gcc/testsuite/g++.dg/concepts/fn10.C | 4 ++-- gcc/testsuite/g++.dg/concepts/fn2.C | 3 ++- gcc/testsuite/g++.dg/concepts/fn3.C | 4 ++-- gcc/testsuite/g++.dg/concepts/fn4.C | 3 ++- gcc/testsuite/g++.dg/concepts/fn5.C | 3 ++- gcc/testsuite/g++.dg/concepts/fn6.C | 3 ++- gcc/testsuite/g++.dg/concepts/fn7.C | 4 ++-- gcc/testsuite/g++.dg/concepts/fn8.C | 3 ++- gcc/testsuite/g++.dg/concepts/fn9.C | 4 ++-- gcc/testsuite/g++.dg/concepts/friend1.C | 3 ++- gcc/testsuite/g++.dg/concepts/friend2.C | 3 ++- gcc/testsuite/g++.dg/concepts/generic-fn-err.C | 3 ++- gcc/testsuite/g++.dg/concepts/generic-fn.C | 4 ++-- gcc/testsuite/g++.dg/concepts/iconv1.C | 3 ++- gcc/testsuite/g++.dg/concepts/inherit-ctor1.C | 3 ++- gcc/testsuite/g++.dg/concepts/inherit-ctor2.C | 3 ++- gcc/testsuite/g++.dg/concepts/inherit-ctor3.C | 3 ++- gcc/testsuite/g++.dg/concepts/inherit-ctor4.C | 3 ++- gcc/testsuite/g++.dg/concepts/intro1.C | 3 ++- gcc/testsuite/g++.dg/concepts/intro2.C | 4 ++-- gcc/testsuite/g++.dg/concepts/intro3.C | 3 ++- gcc/testsuite/g++.dg/concepts/intro4.C | 3 ++- gcc/testsuite/g++.dg/concepts/intro5.C | 3 ++- gcc/testsuite/g++.dg/concepts/intro6.C | 3 ++- gcc/testsuite/g++.dg/concepts/intro7.C | 3 ++- gcc/testsuite/g++.dg/concepts/locations1.C | 3 ++- gcc/testsuite/g++.dg/concepts/member-concept.C | 3 ++- gcc/testsuite/g++.dg/concepts/memfun-err.C | 4 ++-- gcc/testsuite/g++.dg/concepts/memfun.C | 4 ++-- gcc/testsuite/g++.dg/concepts/memfun2.C | 3 ++- gcc/testsuite/g++.dg/concepts/memtmpl1.C | 3 ++- gcc/testsuite/g++.dg/concepts/partial-concept-id1.C | 3 ++- gcc/testsuite/g++.dg/concepts/partial-concept-id2.C | 3 ++- gcc/testsuite/g++.dg/concepts/partial-spec.C | 3 ++- gcc/testsuite/g++.dg/concepts/partial-spec2.C | 3 ++- gcc/testsuite/g++.dg/concepts/partial-spec3.C | 3 ++- gcc/testsuite/g++.dg/concepts/partial-spec4.C | 3 ++- gcc/testsuite/g++.dg/concepts/partial-spec5.C | 3 ++- gcc/testsuite/g++.dg/concepts/partial-spec6.C | 3 ++- gcc/testsuite/g++.dg/concepts/placeholder1.C | 3 ++- gcc/testsuite/g++.dg/concepts/placeholder2.C | 3 ++- gcc/testsuite/g++.dg/concepts/placeholder3.C | 3 ++- gcc/testsuite/g++.dg/concepts/placeholder4.C | 3 ++- gcc/testsuite/g++.dg/concepts/placeholder5.C | 3 ++- gcc/testsuite/g++.dg/concepts/placeholder6.C | 3 ++- gcc/testsuite/g++.dg/concepts/pr65552.C | 3 ++- gcc/testsuite/g++.dg/concepts/pr65575.C | 3 ++- gcc/testsuite/g++.dg/concepts/pr65634.C | 3 ++- gcc/testsuite/g++.dg/concepts/pr65636.C | 3 ++- gcc/testsuite/g++.dg/concepts/pr65681.C | 3 ++- gcc/testsuite/g++.dg/concepts/pr65848.C | 3 ++- gcc/testsuite/g++.dg/concepts/pr65854.C | 3 ++- gcc/testsuite/g++.dg/concepts/pr66091.C | 3 ++- gcc/testsuite/g++.dg/concepts/pr67249.C | 3 ++- gcc/testsuite/g++.dg/concepts/pr67595.C | 3 ++- gcc/testsuite/g++.dg/concepts/pr68434.C | 3 ++- gcc/testsuite/g++.dg/concepts/pr68683.C | 3 ++- gcc/testsuite/g++.dg/concepts/pr71368.C | 3 ++- gcc/testsuite/g++.dg/concepts/pr71385.C | 3 ++- gcc/testsuite/g++.dg/concepts/req-neg1.C | 3 ++- gcc/testsuite/g++.dg/concepts/req1.C | 4 ++-- gcc/testsuite/g++.dg/concepts/req10.C | 3 ++- gcc/testsuite/g++.dg/concepts/req11.C | 3 ++- gcc/testsuite/g++.dg/concepts/req12.C | 3 ++- gcc/testsuite/g++.dg/concepts/req13.C | 3 ++- gcc/testsuite/g++.dg/concepts/req14.C | 3 ++- gcc/testsuite/g++.dg/concepts/req15.C | 3 ++- gcc/testsuite/g++.dg/concepts/req16.C | 3 ++- gcc/testsuite/g++.dg/concepts/req17.C | 3 ++- gcc/testsuite/g++.dg/concepts/req18.C | 3 ++- gcc/testsuite/g++.dg/concepts/req19.C | 3 ++- gcc/testsuite/g++.dg/concepts/req2.C | 3 ++- gcc/testsuite/g++.dg/concepts/req20.C | 3 ++- gcc/testsuite/g++.dg/concepts/req3.C | 4 ++-- gcc/testsuite/g++.dg/concepts/req4.C | 3 ++- gcc/testsuite/g++.dg/concepts/req5.C | 3 ++- gcc/testsuite/g++.dg/concepts/req6.C | 3 ++- gcc/testsuite/g++.dg/concepts/req7.C | 3 ++- gcc/testsuite/g++.dg/concepts/req8.C | 4 ++-- gcc/testsuite/g++.dg/concepts/req9.C | 3 ++- gcc/testsuite/g++.dg/concepts/template-parm1.C | 3 ++- gcc/testsuite/g++.dg/concepts/template-parm10.C | 3 ++- gcc/testsuite/g++.dg/concepts/template-parm11.C | 3 ++- gcc/testsuite/g++.dg/concepts/template-parm12.C | 3 ++- gcc/testsuite/g++.dg/concepts/template-parm2.C | 3 ++- gcc/testsuite/g++.dg/concepts/template-parm3.C | 3 ++- gcc/testsuite/g++.dg/concepts/template-parm4.C | 3 ++- gcc/testsuite/g++.dg/concepts/template-parm5.C | 3 ++- gcc/testsuite/g++.dg/concepts/template-parm6.C | 3 ++- gcc/testsuite/g++.dg/concepts/template-parm7.C | 3 ++- gcc/testsuite/g++.dg/concepts/template-parm8.C | 3 ++- gcc/testsuite/g++.dg/concepts/template-parm9.C | 3 ++- gcc/testsuite/g++.dg/concepts/template-template-parm1.C | 3 ++- gcc/testsuite/g++.dg/concepts/traits1.C | 3 ++- gcc/testsuite/g++.dg/concepts/traits2.C | 3 ++- gcc/testsuite/g++.dg/concepts/var-concept1.C | 3 ++- gcc/testsuite/g++.dg/concepts/var-concept2.C | 3 ++- gcc/testsuite/g++.dg/concepts/var-concept3.C | 3 ++- gcc/testsuite/g++.dg/concepts/var-concept4.C | 3 ++- gcc/testsuite/g++.dg/concepts/var-concept5.C | 3 ++- gcc/testsuite/g++.dg/concepts/var-concept6.C | 3 ++- gcc/testsuite/g++.dg/concepts/var-concept7.C | 3 ++- gcc/testsuite/g++.dg/concepts/var-templ1.C | 3 ++- gcc/testsuite/g++.dg/concepts/var-templ2.C | 3 ++- gcc/testsuite/g++.dg/concepts/var-templ3.C | 3 ++- gcc/testsuite/g++.dg/concepts/variadic1.C | 3 ++- gcc/testsuite/g++.dg/concepts/variadic2.C | 3 ++- gcc/testsuite/g++.dg/concepts/variadic4.C | 3 ++- gcc/testsuite/g++.dg/cpp1z/Wpessimizing-move1.C | 3 ++- gcc/testsuite/g++.dg/cpp1z/aggr-base1.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/aggr-base2.C | 2 +- gcc/testsuite/g++.dg/cpp1z/aggr-base3.C | 2 +- gcc/testsuite/g++.dg/cpp1z/aggr-base4.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/aggr-base5.C | 4 ++-- gcc/testsuite/g++.dg/cpp1z/aggr-base6.C | 4 ++-- gcc/testsuite/g++.dg/cpp1z/aligned-new1.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/aligned-new2.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/aligned-new3.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/aligned-new7.C | 3 ++- gcc/testsuite/g++.dg/cpp1z/aligned-new8.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/attributes-enum-1.C | 2 +- gcc/testsuite/g++.dg/cpp1z/bool-increment1.C | 2 +- gcc/testsuite/g++.dg/cpp1z/byte1.C | 3 ++- gcc/testsuite/g++.dg/cpp1z/byte2.C | 3 ++- gcc/testsuite/g++.dg/cpp1z/class-deduction1.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction10.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction11.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction12.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction13.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction14.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction15.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction16.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction17.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction18.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction19.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction2.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction20.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction21.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction22.C | 4 ++-- gcc/testsuite/g++.dg/cpp1z/class-deduction23.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction24.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction25.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction26.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction27.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction28.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction29.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction3.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction30.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction31.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction32.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction33.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction34.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction35.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction36.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction38.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction39.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction4.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction40.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction41.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction42.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction43.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction44.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction45.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction46.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction48.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction49.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction5.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction50.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction51.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction52.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction54.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction55.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction56.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction57.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction58.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction6.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction7.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction8.C | 2 +- gcc/testsuite/g++.dg/cpp1z/class-deduction9.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-83692.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-84684.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-if10.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-if11.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-if12.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-if13.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-if14.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-if15.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-if16.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-if17.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/constexpr-if18.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-if19.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-if20.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-if21.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-if22.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-if23.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-if24.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-lambda1.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-lambda10.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-lambda11.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-lambda12.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-lambda13.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-lambda17.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-lambda18.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-lambda19.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-lambda2.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-lambda20.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-lambda21.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-lambda3.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-lambda4.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-lambda5.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-lambda6.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-lambda7.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-lambda8.C | 2 +- gcc/testsuite/g++.dg/cpp1z/constexpr-lambda9.C | 2 +- gcc/testsuite/g++.dg/cpp1z/cplusplus.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/decomp-bitfield1.C | 2 +- gcc/testsuite/g++.dg/cpp1z/decomp-constexpr1.C | 2 +- gcc/testsuite/g++.dg/cpp1z/decomp-lambda1.C | 2 +- gcc/testsuite/g++.dg/cpp1z/decomp10.C | 2 +- gcc/testsuite/g++.dg/cpp1z/decomp11.C | 2 +- gcc/testsuite/g++.dg/cpp1z/decomp12.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/decomp15.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/decomp16.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/decomp17.C | 2 +- gcc/testsuite/g++.dg/cpp1z/decomp20.C | 2 +- gcc/testsuite/g++.dg/cpp1z/decomp21.C | 2 +- gcc/testsuite/g++.dg/cpp1z/decomp27.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/decomp29.C | 3 ++- gcc/testsuite/g++.dg/cpp1z/decomp30.C | 2 +- gcc/testsuite/g++.dg/cpp1z/decomp37.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/decomp38.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/decomp9.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/elide1.C | 2 +- gcc/testsuite/g++.dg/cpp1z/eval-order2.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/eval-order3.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/fallthrough1.C | 4 ++-- gcc/testsuite/g++.dg/cpp1z/feat-cxx1z.C | 3 ++- gcc/testsuite/g++.dg/cpp1z/fold-ice1.C | 2 +- gcc/testsuite/g++.dg/cpp1z/fold-lambda.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/fold-lambda2.C | 2 +- gcc/testsuite/g++.dg/cpp1z/fold-mangle.C | 2 +- gcc/testsuite/g++.dg/cpp1z/fold1.C | 4 ++-- gcc/testsuite/g++.dg/cpp1z/fold2.C | 4 ++-- gcc/testsuite/g++.dg/cpp1z/fold3.C | 4 ++-- gcc/testsuite/g++.dg/cpp1z/fold4.C | 2 +- gcc/testsuite/g++.dg/cpp1z/fold6.C | 2 +- gcc/testsuite/g++.dg/cpp1z/fold7.C | 2 +- gcc/testsuite/g++.dg/cpp1z/fold8.C | 2 +- gcc/testsuite/g++.dg/cpp1z/fold9.C | 2 +- gcc/testsuite/g++.dg/cpp1z/init-statement2.C | 3 ++- gcc/testsuite/g++.dg/cpp1z/init-statement3.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/init-statement4.C | 2 +- gcc/testsuite/g++.dg/cpp1z/init-statement5.C | 2 +- gcc/testsuite/g++.dg/cpp1z/init-statement6.C | 2 +- gcc/testsuite/g++.dg/cpp1z/init-statement7.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/init-statement8.C | 2 +- gcc/testsuite/g++.dg/cpp1z/init-statement9.C | 2 +- gcc/testsuite/g++.dg/cpp1z/inline-var1.C | 4 ++-- gcc/testsuite/g++.dg/cpp1z/inline-var1a.C | 4 ++-- gcc/testsuite/g++.dg/cpp1z/inline-var4.C | 2 +- gcc/testsuite/g++.dg/cpp1z/lambda-__func__.C | 2 +- gcc/testsuite/g++.dg/cpp1z/lambda-inherit1.C | 2 +- gcc/testsuite/g++.dg/cpp1z/lambda-this3.C | 2 +- gcc/testsuite/g++.dg/cpp1z/namespace-attribs.C | 3 ++- gcc/testsuite/g++.dg/cpp1z/namespace-attribs2.C | 2 +- gcc/testsuite/g++.dg/cpp1z/nested-namespace-def1.C | 3 ++- gcc/testsuite/g++.dg/cpp1z/nodiscard3.C | 4 ++-- gcc/testsuite/g++.dg/cpp1z/noexcept-type1.C | 2 +- gcc/testsuite/g++.dg/cpp1z/noexcept-type12.C | 2 +- gcc/testsuite/g++.dg/cpp1z/noexcept-type15.C | 2 +- gcc/testsuite/g++.dg/cpp1z/noexcept-type16.C | 2 +- gcc/testsuite/g++.dg/cpp1z/noexcept-type17.C | 2 +- gcc/testsuite/g++.dg/cpp1z/noexcept-type18.C | 2 +- gcc/testsuite/g++.dg/cpp1z/noexcept-type2.C | 4 ++-- gcc/testsuite/g++.dg/cpp1z/noexcept-type3.C | 2 +- gcc/testsuite/g++.dg/cpp1z/noexcept-type4.C | 2 +- gcc/testsuite/g++.dg/cpp1z/noexcept-type5.C | 2 +- gcc/testsuite/g++.dg/cpp1z/noexcept-type6.C | 2 +- gcc/testsuite/g++.dg/cpp1z/noexcept-type7.C | 2 +- gcc/testsuite/g++.dg/cpp1z/noexcept-type8.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/noexcept-type9.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/nontype-auto1.C | 2 +- gcc/testsuite/g++.dg/cpp1z/nontype-auto10.C | 2 +- gcc/testsuite/g++.dg/cpp1z/nontype-auto12.C | 2 +- gcc/testsuite/g++.dg/cpp1z/nontype-auto13.C | 2 +- gcc/testsuite/g++.dg/cpp1z/nontype-auto14.C | 2 +- gcc/testsuite/g++.dg/cpp1z/nontype-auto2.C | 2 +- gcc/testsuite/g++.dg/cpp1z/nontype-auto3.C | 2 +- gcc/testsuite/g++.dg/cpp1z/nontype-auto4.C | 2 +- gcc/testsuite/g++.dg/cpp1z/nontype-auto5.C | 2 +- gcc/testsuite/g++.dg/cpp1z/nontype-auto7.C | 4 ++-- gcc/testsuite/g++.dg/cpp1z/nontype-auto8.C | 2 +- gcc/testsuite/g++.dg/cpp1z/nontype-auto9.C | 2 +- gcc/testsuite/g++.dg/cpp1z/nontype1.C | 2 +- gcc/testsuite/g++.dg/cpp1z/nontype2.C | 2 +- gcc/testsuite/g++.dg/cpp1z/nontype3.C | 2 +- gcc/testsuite/g++.dg/cpp1z/pr78771.C | 2 +- gcc/testsuite/g++.dg/cpp1z/pr79143.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/pr81016.C | 2 +- gcc/testsuite/g++.dg/cpp1z/pr83020.C | 2 +- gcc/testsuite/g++.dg/cpp1z/pr83644.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/pr83918.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/pr84325.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/pr84533.C | 2 +- gcc/testsuite/g++.dg/cpp1z/range-for1.C | 2 +- gcc/testsuite/g++.dg/cpp1z/regress1.C | 2 +- gcc/testsuite/g++.dg/cpp1z/regress2.C | 2 +- gcc/testsuite/g++.dg/cpp1z/static1.C | 2 +- gcc/testsuite/g++.dg/cpp1z/static2.C | 2 +- gcc/testsuite/g++.dg/cpp1z/static_assert-nomsg.C | 2 +- gcc/testsuite/g++.dg/cpp1z/udlit-utf8char.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/utf8-2.C | 2 +- gcc/testsuite/g++.dg/cpp1z/utf8-neg.C | 3 +-- gcc/testsuite/g++.dg/cpp1z/utf8.C | 3 +-- gcc/testsuite/g++.dg/cpp2a/lambda-this3.C | 4 ++-- gcc/testsuite/g++.dg/debug/dwarf2/inline-var-1.C | 4 ++-- gcc/testsuite/g++.dg/debug/dwarf2/inline-var-2.C | 4 ++-- gcc/testsuite/g++.dg/debug/dwarf2/pr80234-1.C | 4 ++-- gcc/testsuite/g++.dg/debug/dwarf2/pr80234-2.C | 4 ++-- gcc/testsuite/g++.dg/ext/integer-pack4.C | 2 +- gcc/testsuite/g++.dg/gomp/pr84556.C | 4 ++-- gcc/testsuite/g++.dg/ipa/pr81248.C | 4 ++-- gcc/testsuite/g++.dg/pr81194.C | 4 ++-- gcc/testsuite/g++.dg/pr82836.C | 2 +- gcc/testsuite/g++.dg/ubsan/pr79589.C | 4 ++-- gcc/testsuite/lib/g++-dg.exp | 2 +- 369 files changed, 554 insertions(+), 433 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 86fa756..eff5d08 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2018-10-20 Marek Polacek + + * g++.dg/*.C: Use target c++17 instead of explicit dg-options. + * lib/g++-dg.exp: Don't test C++11 by default. Add C++17 to + the list of default stds to test. + 2018-10-20 Jakub Jelinek PR middle-end/87647 diff --git a/gcc/testsuite/g++.dg/concepts/alias1.C b/gcc/testsuite/g++.dg/concepts/alias1.C index 1b643cd..279a478 100644 --- a/gcc/testsuite/g++.dg/concepts/alias1.C +++ b/gcc/testsuite/g++.dg/concepts/alias1.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/alias2.C b/gcc/testsuite/g++.dg/concepts/alias2.C index 2de2aa4..06ffb1a 100644 --- a/gcc/testsuite/g++.dg/concepts/alias2.C +++ b/gcc/testsuite/g++.dg/concepts/alias2.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/alias3.C b/gcc/testsuite/g++.dg/concepts/alias3.C index 6e1c39c..2901c04 100644 --- a/gcc/testsuite/g++.dg/concepts/alias3.C +++ b/gcc/testsuite/g++.dg/concepts/alias3.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/alias4.C b/gcc/testsuite/g++.dg/concepts/alias4.C index e7d93d5..2c9f5de 100644 --- a/gcc/testsuite/g++.dg/concepts/alias4.C +++ b/gcc/testsuite/g++.dg/concepts/alias4.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/auto1.C b/gcc/testsuite/g++.dg/concepts/auto1.C index 0c6fa46..2682940 100644 --- a/gcc/testsuite/g++.dg/concepts/auto1.C +++ b/gcc/testsuite/g++.dg/concepts/auto1.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template class A { }; diff --git a/gcc/testsuite/g++.dg/concepts/auto3.C b/gcc/testsuite/g++.dg/concepts/auto3.C index 7b80fe3..abfb201 100644 --- a/gcc/testsuite/g++.dg/concepts/auto3.C +++ b/gcc/testsuite/g++.dg/concepts/auto3.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template class tuple {}; diff --git a/gcc/testsuite/g++.dg/concepts/auto4.C b/gcc/testsuite/g++.dg/concepts/auto4.C index e80341e..4eb2ae8 100644 --- a/gcc/testsuite/g++.dg/concepts/auto4.C +++ b/gcc/testsuite/g++.dg/concepts/auto4.C @@ -1,5 +1,6 @@ // PR c++/85006 -// { dg-additional-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-additional-options "-fconcepts" } template struct A {}; diff --git a/gcc/testsuite/g++.dg/concepts/class-deduction1.C b/gcc/testsuite/g++.dg/concepts/class-deduction1.C index 476830d..936dd68 100644 --- a/gcc/testsuite/g++.dg/concepts/class-deduction1.C +++ b/gcc/testsuite/g++.dg/concepts/class-deduction1.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool Isint = __is_same_as(T,int); diff --git a/gcc/testsuite/g++.dg/concepts/class-deduction2.C b/gcc/testsuite/g++.dg/concepts/class-deduction2.C index 286e59a..e0718d1 100644 --- a/gcc/testsuite/g++.dg/concepts/class-deduction2.C +++ b/gcc/testsuite/g++.dg/concepts/class-deduction2.C @@ -1,5 +1,6 @@ // PR c++/85706 -// { dg-additional-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-additional-options "-fconcepts" } template struct S { S(T); diff --git a/gcc/testsuite/g++.dg/concepts/class.C b/gcc/testsuite/g++.dg/concepts/class.C index 1c5242f..dc5523e 100644 --- a/gcc/testsuite/g++.dg/concepts/class.C +++ b/gcc/testsuite/g++.dg/concepts/class.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool Class() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/class1.C b/gcc/testsuite/g++.dg/concepts/class1.C index 94a5d23..a738e6e 100644 --- a/gcc/testsuite/g++.dg/concepts/class1.C +++ b/gcc/testsuite/g++.dg/concepts/class1.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/class2.C b/gcc/testsuite/g++.dg/concepts/class2.C index 6389128..ec87181 100644 --- a/gcc/testsuite/g++.dg/concepts/class2.C +++ b/gcc/testsuite/g++.dg/concepts/class2.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/class3.C b/gcc/testsuite/g++.dg/concepts/class3.C index b275756..256370d 100644 --- a/gcc/testsuite/g++.dg/concepts/class3.C +++ b/gcc/testsuite/g++.dg/concepts/class3.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/class4.C b/gcc/testsuite/g++.dg/concepts/class4.C index 86eecbc..b583e55 100644 --- a/gcc/testsuite/g++.dg/concepts/class4.C +++ b/gcc/testsuite/g++.dg/concepts/class4.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool Class() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/class5.C b/gcc/testsuite/g++.dg/concepts/class5.C index 76398609..7bf620e 100644 --- a/gcc/testsuite/g++.dg/concepts/class5.C +++ b/gcc/testsuite/g++.dg/concepts/class5.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool One() { return sizeof(T) >= 4; } diff --git a/gcc/testsuite/g++.dg/concepts/class6.C b/gcc/testsuite/g++.dg/concepts/class6.C index 29dcb8f..bdd60918 100644 --- a/gcc/testsuite/g++.dg/concepts/class6.C +++ b/gcc/testsuite/g++.dg/concepts/class6.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool One() { return sizeof(T) >= 4; } diff --git a/gcc/testsuite/g++.dg/concepts/constrained-parm.C b/gcc/testsuite/g++.dg/concepts/constrained-parm.C index feaf3bb..c2b6614a 100644 --- a/gcc/testsuite/g++.dg/concepts/constrained-parm.C +++ b/gcc/testsuite/g++.dg/concepts/constrained-parm.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/debug1.C b/gcc/testsuite/g++.dg/concepts/debug1.C index eeb6365..87f2ac9 100644 --- a/gcc/testsuite/g++.dg/concepts/debug1.C +++ b/gcc/testsuite/g++.dg/concepts/debug1.C @@ -1,5 +1,6 @@ // PR c++/84551 -// { dg-options "-g -O -std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-g -O -fconcepts" } template concept bool C() { return true; } diff --git a/gcc/testsuite/g++.dg/concepts/decl-diagnose.C b/gcc/testsuite/g++.dg/concepts/decl-diagnose.C index caf6b2e..7ac7872 100644 --- a/gcc/testsuite/g++.dg/concepts/decl-diagnose.C +++ b/gcc/testsuite/g++.dg/concepts/decl-diagnose.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } typedef concept int CINT; // { dg-error "'concept' cannot appear in a typedef declaration" } diff --git a/gcc/testsuite/g++.dg/concepts/deduction-constraint1.C b/gcc/testsuite/g++.dg/concepts/deduction-constraint1.C index 5eec87b..bebbda1 100644 --- a/gcc/testsuite/g++.dg/concepts/deduction-constraint1.C +++ b/gcc/testsuite/g++.dg/concepts/deduction-constraint1.C @@ -1,5 +1,6 @@ // PR c++/67007 -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool A = diff --git a/gcc/testsuite/g++.dg/concepts/diagnostic1.C b/gcc/testsuite/g++.dg/concepts/diagnostic1.C index c977eaa..9bb1506 100644 --- a/gcc/testsuite/g++.dg/concepts/diagnostic1.C +++ b/gcc/testsuite/g++.dg/concepts/diagnostic1.C @@ -1,5 +1,6 @@ // PR c++/67159 -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool SameAs = __is_same_as(T, U); diff --git a/gcc/testsuite/g++.dg/concepts/disjunction1.C b/gcc/testsuite/g++.dg/concepts/disjunction1.C index 9bd5097..930adf4 100644 --- a/gcc/testsuite/g++.dg/concepts/disjunction1.C +++ b/gcc/testsuite/g++.dg/concepts/disjunction1.C @@ -1,5 +1,6 @@ // PR c++/66962 -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template struct remove_cv; template struct is_reference; diff --git a/gcc/testsuite/g++.dg/concepts/dr1430.C b/gcc/testsuite/g++.dg/concepts/dr1430.C index 9fd4f43..f865d5e 100644 --- a/gcc/testsuite/g++.dg/concepts/dr1430.C +++ b/gcc/testsuite/g++.dg/concepts/dr1430.C @@ -1,5 +1,6 @@ // PR c++/66092 -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } #include diff --git a/gcc/testsuite/g++.dg/concepts/equiv.C b/gcc/testsuite/g++.dg/concepts/equiv.C index d666d9a..faec354 100644 --- a/gcc/testsuite/g++.dg/concepts/equiv.C +++ b/gcc/testsuite/g++.dg/concepts/equiv.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } // Check equivalence of short- and longhand declarations. diff --git a/gcc/testsuite/g++.dg/concepts/equiv2.C b/gcc/testsuite/g++.dg/concepts/equiv2.C index 694d87a..2094ca9 100644 --- a/gcc/testsuite/g++.dg/concepts/equiv2.C +++ b/gcc/testsuite/g++.dg/concepts/equiv2.C @@ -1,5 +1,5 @@ -// { dg-do run } -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do run { target c++17 } } +// { dg-options "-fconcepts" } // template diff --git a/gcc/testsuite/g++.dg/concepts/explicit-inst1.C b/gcc/testsuite/g++.dg/concepts/explicit-inst1.C index 58d8dec..99bd72e 100644 --- a/gcc/testsuite/g++.dg/concepts/explicit-inst1.C +++ b/gcc/testsuite/g++.dg/concepts/explicit-inst1.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/explicit-inst2.C b/gcc/testsuite/g++.dg/concepts/explicit-inst2.C index f47b758..ea31387 100644 --- a/gcc/testsuite/g++.dg/concepts/explicit-inst2.C +++ b/gcc/testsuite/g++.dg/concepts/explicit-inst2.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/explicit-inst3.C b/gcc/testsuite/g++.dg/concepts/explicit-inst3.C index 00dee2f..18d3c49 100644 --- a/gcc/testsuite/g++.dg/concepts/explicit-inst3.C +++ b/gcc/testsuite/g++.dg/concepts/explicit-inst3.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/explicit-inst4.C b/gcc/testsuite/g++.dg/concepts/explicit-inst4.C index c0f585c..20f4377 100644 --- a/gcc/testsuite/g++.dg/concepts/explicit-inst4.C +++ b/gcc/testsuite/g++.dg/concepts/explicit-inst4.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/explicit-spec1.C b/gcc/testsuite/g++.dg/concepts/explicit-spec1.C index 3873068..bff06f2 100644 --- a/gcc/testsuite/g++.dg/concepts/explicit-spec1.C +++ b/gcc/testsuite/g++.dg/concepts/explicit-spec1.C @@ -1,5 +1,5 @@ -// { dg-do run } -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do run { target c++17 } } +// { dg-options "-fconcepts" } #include diff --git a/gcc/testsuite/g++.dg/concepts/explicit-spec2.C b/gcc/testsuite/g++.dg/concepts/explicit-spec2.C index 17d48e7..ca8b8a0 100644 --- a/gcc/testsuite/g++.dg/concepts/explicit-spec2.C +++ b/gcc/testsuite/g++.dg/concepts/explicit-spec2.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/explicit-spec3.C b/gcc/testsuite/g++.dg/concepts/explicit-spec3.C index 1edc83e..fd48da1 100644 --- a/gcc/testsuite/g++.dg/concepts/explicit-spec3.C +++ b/gcc/testsuite/g++.dg/concepts/explicit-spec3.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/explicit-spec4.C b/gcc/testsuite/g++.dg/concepts/explicit-spec4.C index 963c030..75a2dec 100644 --- a/gcc/testsuite/g++.dg/concepts/explicit-spec4.C +++ b/gcc/testsuite/g++.dg/concepts/explicit-spec4.C @@ -1,5 +1,5 @@ -// { dg-do run } -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do run { target c++17 } } +// { dg-options "-fconcepts" } #include diff --git a/gcc/testsuite/g++.dg/concepts/explicit-spec5.C b/gcc/testsuite/g++.dg/concepts/explicit-spec5.C index e0d89bc..d83eec1 100644 --- a/gcc/testsuite/g++.dg/concepts/explicit-spec5.C +++ b/gcc/testsuite/g++.dg/concepts/explicit-spec5.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } #include diff --git a/gcc/testsuite/g++.dg/concepts/explicit-spec6.C b/gcc/testsuite/g++.dg/concepts/explicit-spec6.C index 0af1df4..b548707 100644 --- a/gcc/testsuite/g++.dg/concepts/explicit-spec6.C +++ b/gcc/testsuite/g++.dg/concepts/explicit-spec6.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template struct A { diff --git a/gcc/testsuite/g++.dg/concepts/expression.C b/gcc/testsuite/g++.dg/concepts/expression.C index 6430f89..33dad0a 100644 --- a/gcc/testsuite/g++.dg/concepts/expression.C +++ b/gcc/testsuite/g++.dg/concepts/expression.C @@ -1,5 +1,5 @@ -// { dg-do run } -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do run { target c++17 } } +// { dg-options "-fconcepts" } #include #include diff --git a/gcc/testsuite/g++.dg/concepts/expression2.C b/gcc/testsuite/g++.dg/concepts/expression2.C index 3583452..c5447df 100644 --- a/gcc/testsuite/g++.dg/concepts/expression2.C +++ b/gcc/testsuite/g++.dg/concepts/expression2.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C1() diff --git a/gcc/testsuite/g++.dg/concepts/expression3.C b/gcc/testsuite/g++.dg/concepts/expression3.C index 4148aa6..26b829d 100644 --- a/gcc/testsuite/g++.dg/concepts/expression3.C +++ b/gcc/testsuite/g++.dg/concepts/expression3.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() diff --git a/gcc/testsuite/g++.dg/concepts/feature-macro.C b/gcc/testsuite/g++.dg/concepts/feature-macro.C index ad2bfb0..d3d9b54 100644 --- a/gcc/testsuite/g++.dg/concepts/feature-macro.C +++ b/gcc/testsuite/g++.dg/concepts/feature-macro.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } #ifndef __cpp_concepts #error __cpp_concepts not defined diff --git a/gcc/testsuite/g++.dg/concepts/fn-concept1.C b/gcc/testsuite/g++.dg/concepts/fn-concept1.C index b858c1a..a4ade7c 100644 --- a/gcc/testsuite/g++.dg/concepts/fn-concept1.C +++ b/gcc/testsuite/g++.dg/concepts/fn-concept1.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool Tuple() { // { dg-error "multiple statements" } diff --git a/gcc/testsuite/g++.dg/concepts/fn-concept2.C b/gcc/testsuite/g++.dg/concepts/fn-concept2.C index fe88dce..0d70728 100644 --- a/gcc/testsuite/g++.dg/concepts/fn-concept2.C +++ b/gcc/testsuite/g++.dg/concepts/fn-concept2.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept auto C1() { return 0; } // { dg-error "16:concept .concept auto C1\\(\\). declared with a deduced return type" } diff --git a/gcc/testsuite/g++.dg/concepts/fn1.C b/gcc/testsuite/g++.dg/concepts/fn1.C index 800a0d3..17f14b9 100644 --- a/gcc/testsuite/g++.dg/concepts/fn1.C +++ b/gcc/testsuite/g++.dg/concepts/fn1.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/fn10.C b/gcc/testsuite/g++.dg/concepts/fn10.C index 71bd82c..6993f34 100644 --- a/gcc/testsuite/g++.dg/concepts/fn10.C +++ b/gcc/testsuite/g++.dg/concepts/fn10.C @@ -1,5 +1,5 @@ -// { dg-do compile } -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } // Test that constraint satisfaction checks work even when // processing template declarations. diff --git a/gcc/testsuite/g++.dg/concepts/fn2.C b/gcc/testsuite/g++.dg/concepts/fn2.C index 67e35ac..250e0a8 100644 --- a/gcc/testsuite/g++.dg/concepts/fn2.C +++ b/gcc/testsuite/g++.dg/concepts/fn2.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/fn3.C b/gcc/testsuite/g++.dg/concepts/fn3.C index 6695f2f..bc0e126 100644 --- a/gcc/testsuite/g++.dg/concepts/fn3.C +++ b/gcc/testsuite/g++.dg/concepts/fn3.C @@ -1,5 +1,5 @@ -// { dg-do run } -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do run { target c++17 } } +// { dg-options "-fconcepts" } #include diff --git a/gcc/testsuite/g++.dg/concepts/fn4.C b/gcc/testsuite/g++.dg/concepts/fn4.C index ecc3d7b..830a174 100644 --- a/gcc/testsuite/g++.dg/concepts/fn4.C +++ b/gcc/testsuite/g++.dg/concepts/fn4.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/fn5.C b/gcc/testsuite/g++.dg/concepts/fn5.C index d4a2e00..018b12f 100644 --- a/gcc/testsuite/g++.dg/concepts/fn5.C +++ b/gcc/testsuite/g++.dg/concepts/fn5.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } // Check shorthand notation. diff --git a/gcc/testsuite/g++.dg/concepts/fn6.C b/gcc/testsuite/g++.dg/concepts/fn6.C index 1293607..97155f8 100644 --- a/gcc/testsuite/g++.dg/concepts/fn6.C +++ b/gcc/testsuite/g++.dg/concepts/fn6.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } // Redefinition errors. diff --git a/gcc/testsuite/g++.dg/concepts/fn7.C b/gcc/testsuite/g++.dg/concepts/fn7.C index 1df21fe..0052f1a 100644 --- a/gcc/testsuite/g++.dg/concepts/fn7.C +++ b/gcc/testsuite/g++.dg/concepts/fn7.C @@ -1,5 +1,5 @@ -// { dg-do link } -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do link { target c++17 } } +// { dg-options "-fconcepts" } // FIXME: What is this actually testing? diff --git a/gcc/testsuite/g++.dg/concepts/fn8.C b/gcc/testsuite/g++.dg/concepts/fn8.C index b91f1ae..a3daf4e 100644 --- a/gcc/testsuite/g++.dg/concepts/fn8.C +++ b/gcc/testsuite/g++.dg/concepts/fn8.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool Class() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/fn9.C b/gcc/testsuite/g++.dg/concepts/fn9.C index 1efde5f..84ed77c 100644 --- a/gcc/testsuite/g++.dg/concepts/fn9.C +++ b/gcc/testsuite/g++.dg/concepts/fn9.C @@ -1,5 +1,5 @@ -// { dg-do run } -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do run { target c++17 } } +// { dg-options "-fconcepts" } #include diff --git a/gcc/testsuite/g++.dg/concepts/friend1.C b/gcc/testsuite/g++.dg/concepts/friend1.C index c437c79..9050b55 100644 --- a/gcc/testsuite/g++.dg/concepts/friend1.C +++ b/gcc/testsuite/g++.dg/concepts/friend1.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool Eq() { return requires(T t) { t == t; }; } diff --git a/gcc/testsuite/g++.dg/concepts/friend2.C b/gcc/testsuite/g++.dg/concepts/friend2.C index 5f14905..8ef6002 100644 --- a/gcc/testsuite/g++.dg/concepts/friend2.C +++ b/gcc/testsuite/g++.dg/concepts/friend2.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool Eq() { return requires(T t) { t == t; }; } diff --git a/gcc/testsuite/g++.dg/concepts/generic-fn-err.C b/gcc/testsuite/g++.dg/concepts/generic-fn-err.C index c34f832..5a95565 100644 --- a/gcc/testsuite/g++.dg/concepts/generic-fn-err.C +++ b/gcc/testsuite/g++.dg/concepts/generic-fn-err.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/generic-fn.C b/gcc/testsuite/g++.dg/concepts/generic-fn.C index 7a48e76..3b10327 100644 --- a/gcc/testsuite/g++.dg/concepts/generic-fn.C +++ b/gcc/testsuite/g++.dg/concepts/generic-fn.C @@ -1,5 +1,5 @@ -// { dg-do run } -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do run { target c++17 } } +// { dg-options "-fconcepts" } #include #include diff --git a/gcc/testsuite/g++.dg/concepts/iconv1.C b/gcc/testsuite/g++.dg/concepts/iconv1.C index 38a0b17..e99254f 100644 --- a/gcc/testsuite/g++.dg/concepts/iconv1.C +++ b/gcc/testsuite/g++.dg/concepts/iconv1.C @@ -1,5 +1,6 @@ // PR c++/67240 -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } int foo(int x) { diff --git a/gcc/testsuite/g++.dg/concepts/inherit-ctor1.C b/gcc/testsuite/g++.dg/concepts/inherit-ctor1.C index 952c8f6..4b3f561 100644 --- a/gcc/testsuite/g++.dg/concepts/inherit-ctor1.C +++ b/gcc/testsuite/g++.dg/concepts/inherit-ctor1.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/inherit-ctor2.C b/gcc/testsuite/g++.dg/concepts/inherit-ctor2.C index b36b993..cb81d13 100644 --- a/gcc/testsuite/g++.dg/concepts/inherit-ctor2.C +++ b/gcc/testsuite/g++.dg/concepts/inherit-ctor2.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/inherit-ctor3.C b/gcc/testsuite/g++.dg/concepts/inherit-ctor3.C index c7ad84a..6f04632 100644 --- a/gcc/testsuite/g++.dg/concepts/inherit-ctor3.C +++ b/gcc/testsuite/g++.dg/concepts/inherit-ctor3.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/inherit-ctor4.C b/gcc/testsuite/g++.dg/concepts/inherit-ctor4.C index 26940ba..43df6e6 100644 --- a/gcc/testsuite/g++.dg/concepts/inherit-ctor4.C +++ b/gcc/testsuite/g++.dg/concepts/inherit-ctor4.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() { return __is_class(T); } diff --git a/gcc/testsuite/g++.dg/concepts/intro1.C b/gcc/testsuite/g++.dg/concepts/intro1.C index ac8a708..84fa6db 100644 --- a/gcc/testsuite/g++.dg/concepts/intro1.C +++ b/gcc/testsuite/g++.dg/concepts/intro1.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C = __is_class(T); diff --git a/gcc/testsuite/g++.dg/concepts/intro2.C b/gcc/testsuite/g++.dg/concepts/intro2.C index 928cc2e..9c7c173 100644 --- a/gcc/testsuite/g++.dg/concepts/intro2.C +++ b/gcc/testsuite/g++.dg/concepts/intro2.C @@ -1,5 +1,5 @@ -// { dg-do run } -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do run { target c++17 } } +// { dg-options "-fconcepts" } #include diff --git a/gcc/testsuite/g++.dg/concepts/intro3.C b/gcc/testsuite/g++.dg/concepts/intro3.C index 78d091d..5e93f31 100644 --- a/gcc/testsuite/g++.dg/concepts/intro3.C +++ b/gcc/testsuite/g++.dg/concepts/intro3.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C1 = true; diff --git a/gcc/testsuite/g++.dg/concepts/intro4.C b/gcc/testsuite/g++.dg/concepts/intro4.C index 2a3e2ba..a7e5135 100644 --- a/gcc/testsuite/g++.dg/concepts/intro4.C +++ b/gcc/testsuite/g++.dg/concepts/intro4.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C1 = true; diff --git a/gcc/testsuite/g++.dg/concepts/intro5.C b/gcc/testsuite/g++.dg/concepts/intro5.C index c5fac80..e7cd7a4 100644 --- a/gcc/testsuite/g++.dg/concepts/intro5.C +++ b/gcc/testsuite/g++.dg/concepts/intro5.C @@ -1,4 +1,5 @@ -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template concept bool C() diff --git a/gcc/testsuite/g++.dg/concepts/intro6.C b/gcc/testsuite/g++.dg/concepts/intro6.C index 6624c88..57b325a 100644 --- a/gcc/testsuite/g++.dg/concepts/intro6.C +++ b/gcc/testsuite/g++.dg/concepts/intro6.C @@ -1,5 +1,6 @@ // PR c++/67003 -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } namespace X { template diff --git a/gcc/testsuite/g++.dg/concepts/intro7.C b/gcc/testsuite/g++.dg/concepts/intro7.C index 9cb4a76..d5bdc7e 100644 --- a/gcc/testsuite/g++.dg/concepts/intro7.C +++ b/gcc/testsuite/g++.dg/concepts/intro7.C @@ -1,5 +1,6 @@ // PR c++/66985 -// { dg-options "-std=c++17 -fconcepts" } +// { dg-do compile { target c++17 } } +// { dg-options "-fconcepts" } template