https://bugs.llvm.org/show_bug.cgi?id=38914
Bug ID: 38914
Summary: unexpected crash - does not happen on g++
Product: libc++
Version: 6.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedclangb...@nondot.org
Reporter: duduar...@gmail.com
CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com
This program crashes before starting.
on g++ - it runs as expected.
it seems like a bug:
#include <iostream>
struct InnerCls
{
InnerCls() { std::cout<<__FUNCTION__<<std::endl;}
~InnerCls() { std::cout<<__FUNCTION__<<std::endl;}
void foo() {std::cout<<__FUNCTION__<<std::endl;}
};
template <class T>
class Cls
{
public:
Cls() { innerCls.foo(); }
static InnerCls innerCls;
};
template<class T>
InnerCls Cls<T>::innerCls ;
int main()
{
Cls<int> x;
}
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs