[llvm-bugs] [Bug 38914] New: unexpected crash - does not happen on g++
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Sep 12 07:03:24 PDT 2018
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: unassignedclangbugs at nondot.org
Reporter: duduarbel at gmail.com
CC: llvm-bugs at lists.llvm.org, mclow.lists at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180912/c378e3e7/attachment.html>
More information about the llvm-bugs
mailing list