[ConceptGCC] |
ConceptGCC :ConceptGCC crash |
From: Axel Lindholm (axel_lindholm_at_[hidden])
Date: 2007-11-21 14:53:25
Hi all!
As the subject may reveal I've managed to crash the ConceptC++ compiler
with a segfault. I'm not sure if the phenomenon is well known but I've
tried searching for some information about it and came up empty, that's
why I'm here. I've shortened the source a bit to just fit what I deem
worthwhile to read and here it is:
#include <array>
auto concept VectorElement<typename T>
{
T& operator = (T&, T);
...
};
template<VectorElement ElementT, unsigned int Size>
class Vector
{
public:
...
private:
std::array<ElementT, Size> m_Elements;
};
This piece of code makes the compiler spit out the following line:
test.cpp:25: internal compiler error: Segmentation fault
Line 25 would be Vector's private array declaration. I have also tried
swapping the std::array-type for a regular array (ElementT
m_Elements[Size];) but the compiler gets angry with me:
test.cpp:25: error: field 'm_Elements' has incomplete type
Declaring a single ElementT by "ElementT m_Elements;" works splendid. Am
I doing something wrong? If it's a known bug, can I work my way around
it for now somehow? A little info about the system I'm compiling on:
AMD64, Windows Vista 32-bit, Cygwin, conceptgcc-boostcon
Thanks in advance!
Axel Lindholm