PR objc/18408
* objc.dg/comp-types-7.m: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94200
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-01-25 Alexander Malmberg <alexander@malmberg.org>
+
+ PR objc/18408
+ * objc.dg/comp-types-7.m: New test.
+
2005-01-24 Janis Johnson <janis187@us.ibm.com>
* lib/target-supports.exp (current_target_name): New.
--- /dev/null
+/* { dg-do compile } */
+/* We just to ICE because we removed the cast to List_linked*
+ in -[ListIndex_linked next]. */
+
+@interface List
+{
+@public
+ int firstLink;
+}
+@end
+
+@interface ListIndex_linked
+{
+@public
+ List *collection;
+ int link;
+}
+@end
+
+@interface List_linked: List
+@end
+
+@implementation List
+@end
+
+@implementation ListIndex_linked
+- next
+{
+ link = ((List_linked*)collection)->firstLink;
+}
+@end
+