http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54798
--- Comment #2 from gcc at boxie dot eu 2012-10-03 20:01:32 UTC --- Created attachment 28345 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28345 minimal test case I further reduce the test case to a minimum. The ICE only happens if the nested class is a template.