Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

internal error: assertion failed at: "shared/cfe/edgcpfe/lower_name.c", line 10541

John_Boltley
Beginner
318 Views

I get an internal error when i try to compile http://www.suse.de/~rguenther/tramp3d/tramp3d-v4.cpp.gz with version 13 on Linux. Testcase reduced with C-Reduce:

[cpp]

extern "C" void pthread_key_create ();
class A
{
public:
    template < typename > struct rebind
    {
        typedef A other;
    };
};
template < typename _Alloc > struct __alloc_traits
{
    template < typename _Tp > struct rebind
    {
        typedef typename _Alloc::template rebind < _Tp >::other other;
    };
};
template < class > struct B;
template < int >class C;
class D
{
};
template < int, class > class I:D
{
};
template <> class C < 1 >:I < 0, B < C < 0 > > >
{
};

template < typename _Tp, typename _Alloc > struct F
{
    typedef typename __alloc_traits < _Alloc >::template rebind <
    _Tp >::other _Tp_alloc_type;
    struct J:_Tp_alloc_type
    {
        J (_Tp_alloc_type):_Tp_alloc_type ()
        {
        }
    };
    typedef _Alloc allocator_type;
    F (int, const allocator_type & p2):_M_impl (p2)
    {
    } J _M_impl;
};

template < typename _Tp, typename _Alloc = A > class K:F < _Tp, _Alloc >
{
    typedef F < _Tp, _Alloc > _Base;
public:
    typedef _Tp value_type;
    typedef _Alloc allocator_type;
    K (int, const value_type & = value_type (),
       const allocator_type & p3 = allocator_type ()):_Base (0, p3)
    {
    }
};

enum CenteringType
{ CellType };
template < int >class H
{
public:
    H ();
};
H < 0 > a;
static __typeof pthread_key_create voide
__attribute__ ((__weakref__ ("__pthread_key_create")));
class G
{
public:
    G (CenteringType = CellType):orientations_m (0), positions_m (0)
    {
    } K < C < 1 > >orientations_m;
    K < int >positions_m;
};

template < int Dim > H < Dim >::H ()
{
    new G[0];
}

[/cpp]

[plain] % icpc test.ii

test.ii(79): internal error: assertion failed at: "shared/cfe/edgcpfe/lower_name.c", line 10541 compilation aborted for test.ii (code 4)

% icpc -v icpc version 13.0.0 (gcc version 4.7.0 compatibility) [/plain]

0 Kudos
2 Replies
Alexander_W_Intel
318 Views
Hi John, Thanks for submitting the issue. I was able to reproduce it. I will take a deeper look into it and reply as soon as I have new information for you. Thanks, Alex
0 Kudos
Alexander_W_Intel
317 Views
Hi John, I forwarded your issue to our development team. The Tracking number is: DPD200236077 Alex
0 Kudos
Reply