re PR c++/45382 (internal compiler error: tree code ‘call_expr’ is not supported in gimple streams)

2010-10-14  Richard Guenther  <rguenther@suse.de>

	PR lto/45382
	* g++.dg/lto/20101014-2_0.C: New testcase.

From-SVN: r165471
This commit is contained in:
Richard Guenther 2010-10-14 15:31:36 +00:00 committed by Richard Biener
parent f8ed6dc529
commit 4a759e75ab
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-10-14 Richard Guenther <rguenther@suse.de>
PR lto/45382
* g++.dg/lto/20101014-2_0.C: New testcase.
2010-10-14 H.J. Lu <hongjiu.lu@intel.com>
* gcc.target/i386/avx-copysign-vec.c: Add -mtune=generic.

View File

@ -0,0 +1,8 @@
// { dg-lto-do assemble }
template<class T, unsigned long l>
inline unsigned long foo (T (&)[l]) { return l; }
struct S { char *s[4]; S (); };
S::S () { typedef int T[foo (s) == 4 ? 1 : -1]; }