From 848af81ed5f0334198c9f8247351191b360dbe2d Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Thu, 22 Oct 2009 13:10:55 +0000 Subject: [PATCH] re PR middle-end/41730 (ICE with -flto -fwhole-program) 2009-10-22 Richard Guenther PR lto/41730 * g++.dg/lto/20091022-1_0.C: New testcase. From-SVN: r153455 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/lto/20091022-1_0.C | 13 +++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 gcc/testsuite/g++.dg/lto/20091022-1_0.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 78f21bd42cb..7884ac13750 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-10-22 Richard Guenther + + PR lto/41730 + * g++.dg/lto/20091022-1_0.C: New testcase. + 2009-10-22 Jan Hubicka * gcc.c-torture/compile/pr40556.c: New testcase. diff --git a/gcc/testsuite/g++.dg/lto/20091022-1_0.C b/gcc/testsuite/g++.dg/lto/20091022-1_0.C new file mode 100644 index 00000000000..cb3f20a4ed2 --- /dev/null +++ b/gcc/testsuite/g++.dg/lto/20091022-1_0.C @@ -0,0 +1,13 @@ +// { dg-lto-do link } +// { dg-extra-ld-options "-fwhole-program" } + +template +struct AutoDerivativeFunction { + virtual void gradient_list (void); +}; +template +void AutoDerivativeFunction::gradient_list (void) +{ +} +template class AutoDerivativeFunction<1>; +int main() {}