------- Comment #10 from aph at gcc dot gnu dot org 2006-08-29 14:05 ------- class Psupersuper { }
class Psuper extends Psupersuper { } class P extends Psuper { Psupersuper barf() { return new P(); } } class PR28663 { static Psuper arse () { return (P)new P().barf(); } } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663