3 ms·
Something I found last week that crashes with clang-503.0.40: template<class T> class foo { public: ~ foo() { } f
by udp 12y ago
Something I found last week that crashes with clang-503.0.40:
template<class T> class foo
{
public:
~ foo()
{
}
foo &operator = (const foo &rhs)
{
foo::~foo();
new (this) foo (rhs);
return *this;
}
};
int main(int argc, char * argv[])
{
foo<int> a, b;
b = a;
}
- archgoon 12y agoThis is the same bug.