re PR middle-end/41730 (ICE with -flto -fwhole-program)

2009-10-22  Richard Guenther  <rguenther@suse.de>

	PR lto/41730
	* g++.dg/lto/20091022-1_0.C: New testcase.

From-SVN: r153455
This commit is contained in:
Richard Guenther 2009-10-22 13:10:55 +00:00 committed by Richard Biener
parent f9c91f8a90
commit 848af81ed5
2 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-10-22 Richard Guenther <rguenther@suse.de>
PR lto/41730
* g++.dg/lto/20091022-1_0.C: New testcase.
2009-10-22 Jan Hubicka <jh@suse.cz>
* gcc.c-torture/compile/pr40556.c: New testcase.

View File

@ -0,0 +1,13 @@
// { dg-lto-do link }
// { dg-extra-ld-options "-fwhole-program" }
template <int dim>
struct AutoDerivativeFunction {
virtual void gradient_list (void);
};
template <int dim>
void AutoDerivativeFunction<dim>::gradient_list (void)
{
}
template class AutoDerivativeFunction<1>;
int main() {}