Testcase: template<typename _Tp> struct __per_type_pool_policy { static void _S_get_pool() { const static int __align = (__alignof__(_Tp) >= 1 ? __alignof__(_Tp) : 1); static int _S_tune( 2 >= __align ? 1 : __align); } };
This did not ICE in 4.0.0. Also this is reduced from PR 23352 but I was trying to reduce a different ICE when finding with this one. -- Summary: [4.1 Regression] ICE with __alignof__ on template arguments Product: gcc Version: 4.1.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23357