mirror of https://github.com/CGAL/cgal
Because of bug in gcc, even if the C++11 `thread_local` keyword can be
used, it cannot be used for the TLS static member of the class template
`MemoryPool<T>`. That triggers a bug in gcc (tested with g++ 6.3.1):
```
.../include/CGAL/CORE/MemoryPool.h:113:25: error: redefinition of 'bool __tls_guard'
MemoryPool<T, nObjects> MemoryPool<T, nObjects>::memPool;
^~~~~~~~~~~~~~~~~~~~~~~
.../include/CGAL/CORE/MemoryPool.h:113:25: note: 'bool __tls_guard' previously declared here
.../include/CGAL/CORE/MemoryPool.h:113: confused by earlier errors, bailing out
Preprocessed source stored into /tmp/cc4xCWuR.out file, please attach this to your bugreport.
```
The bug seems to be from g++ >= 5:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54948
|
||
|---|---|---|
| .. | ||
| poly | ||
| BigFloat.h | ||
| BigFloatRep.h | ||
| BigFloat_impl.h | ||
| BigInt.h | ||
| BigRat.h | ||
| CORE.h | ||
| Config.h | ||
| CoreAux.h | ||
| CoreAux_impl.h | ||
| CoreDefs.h | ||
| CoreDefs_impl.h | ||
| CoreIO_impl.h | ||
| Expr.h | ||
| ExprRep.h | ||
| Expr_impl.h | ||
| Filter.h | ||
| Gmp.h | ||
| Gmp_impl.h | ||
| Impl.h | ||
| MemoryPool.h | ||
| Promote.h | ||
| Real.h | ||
| RealRep.h | ||
| Real_impl.h | ||
| RefCount.h | ||
| Timer.h | ||
| extLong.h | ||
| extLong_impl.h | ||
| linearAlgebra.h | ||