PR ipa/62121
* ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
fix pasto in checking array size.
* g++.dg/torture/pr62121.C: New testcase.
From-SVN: r215655
+2014-09-26 Jan Hubicka <hubicka@ucw.cz>
+
+ PR ipa/62121
+ * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
+ fix pasto in checking array size.
+
2014-09-26 Jan Hubicka <hubicka@ucw.cz>
PR middle-end/35545
&& (cur_offset
+ (expected_type ? tree_to_uhwi (TYPE_SIZE (expected_type))
: 0)
- > tree_to_uhwi (TYPE_SIZE (type))))
+ > tree_to_uhwi (TYPE_SIZE (subtype))))
goto no_useful_type_info;
cur_offset = new_offset;
+2014-09-26 Jan Hubicka <hubicka@ucw.cz>
+
+ PR ipa/62121
+ * g++.dg/torture/pr62121.C: New testcase.
+
2014-09-26 Jan Hubicka <hubicka@ucw.cz>
PR middle-end/35545
--- /dev/null
+// { dg-do compile }
+class A
+{
+ virtual double operator()();
+};
+class B : A
+{
+public:
+ double operator()();
+};
+extern B a[];
+int b = a[0]();