From 65dbe23923efe97ac7edaa04fccacdb722a4a400 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Mon, 9 May 2011 22:57:19 +0000 Subject: [PATCH] re PR c++/48735 ([C++0x][SFINAE] Hard errors with array list-construction and deleted default c'tor) 2011-05-09 Paolo Carlini PR c++/48735 * g++.dg/cpp0x/sfinae21.C: New. 2011-05-09 Paolo Carlini * g++.dg/template/sfinae28.C: Rename to... * g++.dg/cpp0x/sfinae19.C: ... this. * g++.dg/template/sfinae29.C: Rename to... * g++.dg/cpp0x/sfinae20.C: ... this. From-SVN: r173597 --- gcc/testsuite/ChangeLog | 12 ++++++++++++ .../g++.dg/{template/sfinae28.C => cpp0x/sfinae19.C} | 0 .../g++.dg/{template/sfinae29.C => cpp0x/sfinae20.C} | 0 gcc/testsuite/g++.dg/cpp0x/sfinae21.C | 14 ++++++++++++++ 4 files changed, 26 insertions(+) rename gcc/testsuite/g++.dg/{template/sfinae28.C => cpp0x/sfinae19.C} (100%) rename gcc/testsuite/g++.dg/{template/sfinae29.C => cpp0x/sfinae20.C} (100%) create mode 100644 gcc/testsuite/g++.dg/cpp0x/sfinae21.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0b9b1192279..8279c6998b3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,15 @@ +2011-05-09 Paolo Carlini + + PR c++/48735 + * g++.dg/cpp0x/sfinae21.C: New. + +2011-05-09 Paolo Carlini + + * g++.dg/template/sfinae28.C: Rename to... + * g++.dg/cpp0x/sfinae19.C: ... this. + * g++.dg/template/sfinae29.C: Rename to... + * g++.dg/cpp0x/sfinae20.C: ... this. + 2011-05-09 Jeff Law * lib/gcc-gdb-test.exp (gdb-test): Reorder matchers to give more diff --git a/gcc/testsuite/g++.dg/template/sfinae28.C b/gcc/testsuite/g++.dg/cpp0x/sfinae19.C similarity index 100% rename from gcc/testsuite/g++.dg/template/sfinae28.C rename to gcc/testsuite/g++.dg/cpp0x/sfinae19.C diff --git a/gcc/testsuite/g++.dg/template/sfinae29.C b/gcc/testsuite/g++.dg/cpp0x/sfinae20.C similarity index 100% rename from gcc/testsuite/g++.dg/template/sfinae29.C rename to gcc/testsuite/g++.dg/cpp0x/sfinae20.C diff --git a/gcc/testsuite/g++.dg/cpp0x/sfinae21.C b/gcc/testsuite/g++.dg/cpp0x/sfinae21.C new file mode 100644 index 00000000000..4fba6eb82a1 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/sfinae21.C @@ -0,0 +1,14 @@ +// PR c++/48735 +// { dg-options "-std=c++0x" } + +template +char f(int); + +template +char (&f(...))[2]; + +struct ND { ND() = delete; }; + +static_assert(sizeof(f(0)) != 1, "Error"); -- 2.11.4.GIT