The attached code causes gcc-4.5 to segfault. 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: template instantiation causes gcc to segfault Product: gcc Version: 4.5.0 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 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43822