Bug#855012: clang-3.9: Segmentation fault when compiling
Eric Peter STAVARACHE
estavarache at bitdefender.com
Mon Feb 13 08:54:18 UTC 2017
The include error is because it uses the libs provided by gcc 6.3.0
Try this version that does not include anything.
struct StructA;
struct StructB;
struct StructC;
enum class action { };
template<typename T>
struct shared_ptr
{
shared_ptr(T*)
{
}
};
static action foo(StructA ð_context)
{
}
static void fun(struct StructB *response, void *callbackContext)
{
shared_ptr<StructC> context =
shared_ptr<StructC>(reinterpret_cast<StructC *>(callbackContext));
}
________________________________________
From: Sylvestre Ledru <sylvestre at debian.org>
Sent: Monday, February 13, 2017 10:39 AM
To: Eric Peter STAVARACHE; 855012 at bugs.debian.org
Subject: Re: Bug#855012: clang-3.9: Segmentation fault when compiling
Le 13/02/2017 à 09:27, Eric Peter Stavarache a écrit :
> Package: clang-3.9
> Version: 1:3.9.1-4
> Severity: important
>
> Dear Maintainer,
>
>
> This the code in question:
>
I am getting with your command line:
---
main.cpp:1:10: fatal error: 'memory' file not found
#include <memory>
^
1 error generated.
---
If I comment the include, I am getting:
main.cpp:9:28: fatal error: unused parameter 'eth_context'
[-Wunused-parameter]
static action foo(StructA ð_context)
^
1 error generated.
Can you tell me more?
S
________________________
This email was scanned by Bitdefender
More information about the Pkg-llvm-team
mailing list