http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59240
--- Comment #2 from Adam Borowski <kilobyte at angband dot pl> --- Created attachment 31271 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31271&action=edit smaller test case that compiles with 4.8 A funny thing: this ICE does not show in the original file, it just happened that an additional unrelated ICE popped up while deltaing a test case for another. It turns out that it's enough to just declare something as __weakref__, reducing the reproducer to a single line that compiles with g++-4.8.