From eddd291e260549659b0a04f6ae73093fb4d3d467 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 1 Apr 2009 15:56:29 +0000 Subject: [PATCH] re PR c++/35240 (ICE with new in template parameter) 2009-04-01 H.J. Lu PR c++/35240 * g++.dg/template/pr35240.C: New. From-SVN: r145408 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/template/pr35240.C | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 gcc/testsuite/g++.dg/template/pr35240.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 16d93400179..7cd559f6641 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-04-01 H.J. Lu + + PR c++/35240 + * g++.dg/template/pr35240.C: New. + 2009-04-01 Joseph Myers PR c/39605 diff --git a/gcc/testsuite/g++.dg/template/pr35240.C b/gcc/testsuite/g++.dg/template/pr35240.C new file mode 100644 index 00000000000..de82897f685 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/pr35240.C @@ -0,0 +1,12 @@ +// PR c++/35240 +// { dg-do compile } + + +template struct A {}; + +template A foo(); + +void bar() +{ + foo<1>(); // { dg-message "unimplemented" } +}