volatile struct requires static initialisation with asan in c++11 ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

I am trying to understand why the following code snippet produces a
call to __static_initialization_and_destruction_0(int, int)

This is only observed when compiling as C++ with -fsanitize=address
and -std=c++11. (but not in c++98)

typedef volatile struct A { int a; } tA;
typedef struct B { tA a; } tB;
tB X;

Compiled with GCC 5.

Thank you

-- 
Smets Jan
jan@xxxxxxxx



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux