[Bug c++/23357] New: [4.1 Regression] ICE with __alignof__ on template arguments
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Aug 12 17:31:00 GMT 2005
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
More information about the Gcc-bugs
mailing list