The attached code leads to segfaults when compiled with gcc-4.5.0 or gcc-4.5.1. gcc-4.4.1 accepts the code. I have absolutely no idea what is actually causing the segfault, as the very same instantiation does not segfault in another context.
-- Summary: ICE in template instantiation Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mr dot chr dot schmidt at online dot de GCC target triplet: i686-pc-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45200