From 2f16cacd8ee488312e622dc295d5e8d0bfa5fc41 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Wed, 19 Mar 2014 15:48:39 +0000 Subject: [PATCH] re PR c++/60332 ([c++1y] ICE with auto in function-pointer cast) 2014-03-19 Paolo Carlini PR c++/60332 * g++.dg/cpp1y/pr60332.C: New. From-SVN: r208684 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp1y/pr60332.C | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp1y/pr60332.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9891638a802b..47b6e519fca7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-03-19 Paolo Carlini + + PR c++/60332 + * g++.dg/cpp1y/pr60332.C: New. + 2014-03-19 Marek Polacek PR sanitizer/60569 diff --git a/gcc/testsuite/g++.dg/cpp1y/pr60332.C b/gcc/testsuite/g++.dg/cpp1y/pr60332.C new file mode 100644 index 000000000000..c0a67a9f6cdb --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1y/pr60332.C @@ -0,0 +1,6 @@ +// PR c++/60332 +// { dg-do compile { target c++1y } } + +void foo(); + +auto f = (auto(*)())(&foo); // { dg-error "invalid" } -- 2.47.2