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

Version 11.0, (0): internal error: backend signals

amano
Beginner
340 Views

Hi,

at Intel C++ Compiler Version 11.0 and Ubuntu 8.04

user@ubuntu804~$ icpc -c -o main.o main.cpp
(0): internal error: backend signals
compilation aborted for main.cpp (code 4)

is this a bug of the compiler?

// main.cpp

#include
#include

namespace cxx {

using std::size_t;
using std::ptrdiff_t;

template
class my_allocator {
public:
typedef size_t size_type;
typedef ptrdiff_t difference_type;
typedef _Tp* pointer;
typedef const _Tp* const_pointer;
typedef _Tp& reference;
typedef const _Tp& const_reference;
typedef _Tp value_type;

template
struct rebind
{ typedef my_allocator<_Tp1> other; };

my_allocator() throw() {}

my_allocator(const my_allocator&) throw() {}

template
my_allocator(const my_allocator<_Tp1>&) throw() {}

~my_allocator() throw() {}

pointer address(reference __x) const
{ return &__x; }

const_pointer address(const_reference __x) const
{ return &__x; }

pointer allocate(size_type __n, const void* = 0)
{ return static_cast<_Tp*>(malloc(__n * sizeof(_Tp))); }

void deallocate(pointer __p, size_type)
{ free(static_cast(__p)); }

size_type max_size() const throw()
{ return size_t(-1) / sizeof(_Tp); }

void construct(pointer __p, const _Tp& __val)
{ ::new(__p) value_type(__val); }

void destroy(pointer __p)
{ __p->~_Tp(); }
};

template inline
bool operator==(const my_allocator<_Tp>&, const my_allocator<_Tp>&)
{ return true; }

template inline
bool operator!=(const my_allocator<_Tp>&, const my_allocator<_Tp>&)
{ return false; }

typedef std::basic_string std::char_traits,
my_allocator > my_string;

} // namespace cxx

int main()
{
cxx::my_string s = "Hello, World";
std::cout << s << std::endl;
}

0 Kudos
1 Reply
TimP
Honored Contributor III
340 Views

Yes, any internal error is a bug, and you are welcome to post your reproducer in a problem report on you account on premier.intel.com.

0 Kudos
Reply