This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23357] New: [4.1 Regression] ICE with __alignof__ on template arguments
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Aug 2005 17:31:12 -0000
- Subject: [Bug c++/23357] New: [4.1 Regression] ICE with __alignof__ on template arguments
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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