This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/54980] [4.8 regression] gimple check: expected gimple_cond(error_mark), have gimple_call() in gimple_cond_set_lhs, at gimple.h:2578
- From: "dimhen at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 19 Oct 2012 00:08:54 +0000
- Subject: [Bug lto/54980] [4.8 regression] gimple check: expected gimple_cond(error_mark), have gimple_call() in gimple_cond_set_lhs, at gimple.h:2578
- Auto-submitted: auto-generated
- References: <bug-54980-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54980
--- Comment #3 from Dmitry G. Dyachenko <dimhen at gmail dot com> 2012-10-19 00:08:54 UTC ---
and more
$ cat 1.ii
class A
{
};
template < int (*t_parser) () > class B
{
virtual int parse ()
{
A a;
t_parser ();
}
};
extern "C" int f ();
class C:B < f >
{
};
void
g ()
{
new C;
}
$ cat 2.ii
extern "C" int f ();
char *a[] = { 0, 0 };
void bar (char *);
int
f ()
{
int i;
while (1)
bar (a[i++]);
}