<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW " title="NEW --- - clang 3.6.1 crashes when building codeblocks on FreeBSD" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24000&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=YmdF8e4T8b1L10CXo7zycf3vAsr9GD7c9JG2N8j82TM&s=6VSuXQwqC0lOcGtciE0YuKT9pGq8qdjbDaLBOBHe9Ik&e=">24000</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang 3.6.1 crashes when building codeblocks on FreeBSD
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.6
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>amdmi3@amdmi3.ru
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>FreeBSD current, clang from base system:

FreeBSD clang version 3.6.1 (tags/RELEASE_361/final 237755) 20150525
Target: x86_64-unknown-freebsd11.0
Thread model: posix

Trying to compile codeblocks (<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.codeblocks.org_&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=YmdF8e4T8b1L10CXo7zycf3vAsr9GD7c9JG2N8j82TM&s=wfmIXRf8nbTvhXVGGd-G_TUPHnMI24wiI-MSKuygQIM&e=">http://www.codeblocks.org/</a>)

---
/bin/sh ../../libtool --tag=CXX    --mode=compile c++ -DHAVE_CONFIG_H -I.
-I../../src/include   -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8
-I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__
-pthread -D_THREAD_SAFE  -I../../src/include 
-I../../src/sdk/wxscintilla/include  -I../../src/sdk/wxpropgrid/include 
-I../../src/include/tinyxml  -I../../src/include/scripting/include 
-I../../src/include/scripting/bindings  -I../../src/include/scripting/sqplus 
-I../../src/include/mozilla_chardet  -I../../src/include/mozilla_chardet/mfbt 
-I../../src/include/mozilla_chardet/nsprpub/pr/include 
-I../../src/include/mozilla_chardet/xpcom 
-I../../src/include/mozilla_chardet/xpcom/base 
-I../../src/include/mozilla_chardet/xpcom/glue -I/usr/local/include -ansi
-DTIXML_USE_STL  -O2 -ffast-math -DCB_AUTOCONF -O2 -pipe -march=nocona 
-fstack-protector -fno-strict-aliasing  -std=c++11  -fPIC -DPIC -fexceptions
-MT cbthreadpool.lo -MD -MP -MF .deps/cbthreadpool.Tpo -c -o cbthreadpool.lo
cbthreadpool.cpp
libtool: compile:  c++ -DHAVE_CONFIG_H -I. -I../../src/include
-I/usr/local/lib/wx/include/gtk2-unicode-release-2.8
-I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__
-pthread -D_THREAD_SAFE -I../../src/include -I../../src/sdk/wxscintilla/include
-I../../src/sdk/wxpropgrid/include -I../../src/include/tinyxml
-I../../src/include/scripting/include -I../../src/include/scripting/bindings
-I../../src/include/scripting/sqplus -I../../src/include/mozilla_chardet
-I../../src/include/mozilla_chardet/mfbt
-I../../src/include/mozilla_chardet/nsprpub/pr/include
-I../../src/include/mozilla_chardet/xpcom
-I../../src/include/mozilla_chardet/xpcom/base
-I../../src/include/mozilla_chardet/xpcom/glue -I/usr/local/include -ansi
-DTIXML_USE_STL -O2 -ffast-math -DCB_AUTOCONF -O2 -pipe -march=nocona
-fstack-protector -fno-strict-aliasing -std=c++11 -fPIC -DPIC -fexceptions -MT
cbthreadpool.lo -MD -MP -MF .deps/cbthreadpool.Tpo -c cbthreadpool.cpp  -fPIC
-DPIC -o .libs/cbthreadpool.o
Assertion failed: (EST == EST_Dynamic && "EST case not considered earlier."),
function CalledDecl, file
/usr/src/lib/clang/libclangsema/../../../contrib/llvm/tools/clang/lib/Sema/SemaDeclCXX.cpp,
line 210.
Stack dump:
0.    Program arguments: /usr/bin/c++ -cc1 -triple x86_64-unknown-freebsd11.0
-emit-obj -disable-free -main-file-name cbthreadpool.cpp -mrelocation-model pic
-pic-level 2 -mthread-model posix -mdisable-fp-elim -relaxed-aliasing
-menable-no-infs -menable-no-nans -menable-unsafe-fp-math -ffp-contract=fast
-ffast-math -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu
nocona -dwarf-column-info -coverage-file
/ssd/batchports-mem/devel/codeblocks/work/codeblocks-13.12/src/sdk/.libs/cbthreadpool.o
-resource-dir /usr/bin/../lib/clang/3.6.1 -dependency-file
.deps/cbthreadpool.Tpo -sys-header-deps -MP -MT cbthreadpool.lo -D
HAVE_CONFIG_H -D _FILE_OFFSET_BITS=64 -D _LARGE_FILES -D __WXGTK__ -D
_THREAD_SAFE -D TIXML_USE_STL -D CB_AUTOCONF -D PIC -D PIC -I . -I
../../src/include -I /usr/local/lib/wx/include/gtk2-unicode-release-2.8 -I
/usr/local/include/wx-2.8 -I ../../src/include -I
../../src/sdk/wxscintilla/include -I ../../src/sdk/wxpropgrid/include -I
../../src/include/tinyxml -I ../../src/include/scripting/include -I
../../src/include/scripting/bindings -I ../../src/include/scripting/sqplus -I
../../src/include/mozilla_chardet -I ../../src/include/mozilla_chardet/mfbt -I
../../src/include/mozilla_chardet/nsprpub/pr/include -I
../../src/include/mozilla_chardet/xpcom -I
../../src/include/mozilla_chardet/xpcom/base -I
../../src/include/mozilla_chardet/xpcom/glue -I /usr/local/include
-internal-isystem /usr/include/c++/v1 -O2 -std=c++11 -fdeprecated-macro
-fdebug-compilation-dir
/ssd/batchports-mem/devel/codeblocks/work/codeblocks-13.12/src/sdk
-ferror-limit 19 -fmessage-length 0 -pthread -stack-protector 1 -mstackrealign
-fobjc-runtime=gnustep -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-vectorize-loops -vectorize-slp -o .libs/cbthreadpool.o -x c++ cbthreadpool.cpp 
1.    ../../src/include/cbthreadpool.h:180:33: current parser token ';'
2.    ../../src/include/cbthreadpool.h:19:1: parsing struct/union/class body
'cbThreadPool'
c++: error: unable to execute command: Abort trap
c++: error: clang frontend command failed due to signal (use -v to see
invocation)
FreeBSD clang version 3.6.1 (tags/RELEASE_361/final 237755) 20150525
Target: x86_64-unknown-freebsd11.0
Thread model: posix
c++: note: diagnostic msg: PLEASE submit a bug report to
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__bugs.freebsd.org_submit_&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=YmdF8e4T8b1L10CXo7zycf3vAsr9GD7c9JG2N8j82TM&s=9cVZ3auzxSNeo0Kiqa1CNxlCNPT6FwNogLZYhe5M35c&e=">https://bugs.freebsd.org/submit/</a> and include the crash backtrace, preprocessed
source, and associated run script.
c++: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/cbthreadpool-737e5c.cpp
c++: note: diagnostic msg: /tmp/cbthreadpool-737e5c.sh
c++: note: diagnostic msg: 

********************
*** Error code 1

Stop.
---

<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__people.freebsd.org_-7Eamdmi3_cbthreadpool-2D737e5c.cpp&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=YmdF8e4T8b1L10CXo7zycf3vAsr9GD7c9JG2N8j82TM&s=9SiIca_ZE4PXJLiZmqART1r7I-gygGKQ4RMADhY0Bzs&e=">https://people.freebsd.org/~amdmi3/cbthreadpool-737e5c.cpp</a>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__people.freebsd.org_-7Eamdmi3_cbthreadpool-2D737e5c.sh&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=YmdF8e4T8b1L10CXo7zycf3vAsr9GD7c9JG2N8j82TM&s=y8XoY5ChQzjHzCpC2bTtekijdPnZBd5vsunWpEEtoK8&e=">https://people.freebsd.org/~amdmi3/cbthreadpool-737e5c.sh</a>

clang head, however, doesn't have this problem, just reporting c++ error
(below), so I guess the bug may already be fixed, but reporting anyway just to
be safe.

---
/bin/sh ../../libtool --tag=CXX    --mode=compile clang++-devel -DHAVE_CONFIG_H
-I. -I../../src/include   -I/usr/local/lib/wx/include/gtk2-unicode-release-2.8
-I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__
-pthread -D_THREAD_SAFE  -I../../src/include 
-I../../src/sdk/wxscintilla/include  -I../../src/sdk/wxpropgrid/include 
-I../../src/include/tinyxml  -I../../src/include/scripting/include 
-I../../src/include/scripting/bindings  -I../../src/include/scripting/sqplus 
-I../../src/include/mozilla_chardet  -I../../src/include/mozilla_chardet/mfbt 
-I../../src/include/mozilla_chardet/nsprpub/pr/include 
-I../../src/include/mozilla_chardet/xpcom 
-I../../src/include/mozilla_chardet/xpcom/base 
-I../../src/include/mozilla_chardet/xpcom/glue -I/usr/local/include -ansi
-DTIXML_USE_STL  -O2 -ffast-math -DCB_AUTOCONF -O2 -pipe  -fstack-protector
-fno-strict-aliasing  -std=c++11  -fPIC -DPIC -fexceptions -MT cbthreadpool.lo
-MD -MP -MF .deps/cbthreadpool.Tpo -c -o cbthreadpool.lo cbthreadpool.cpp
libtool: compile:  clang++-devel -DHAVE_CONFIG_H -I. -I../../src/include
-I/usr/local/lib/wx/include/gtk2-unicode-release-2.8
-I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__
-pthread -D_THREAD_SAFE -I../../src/include -I../../src/sdk/wxscintilla/include
-I../../src/sdk/wxpropgrid/include -I../../src/include/tinyxml
-I../../src/include/scripting/include -I../../src/include/scripting/bindings
-I../../src/include/scripting/sqplus -I../../src/include/mozilla_chardet
-I../../src/include/mozilla_chardet/mfbt
-I../../src/include/mozilla_chardet/nsprpub/pr/include
-I../../src/include/mozilla_chardet/xpcom
-I../../src/include/mozilla_chardet/xpcom/base
-I../../src/include/mozilla_chardet/xpcom/glue -I/usr/local/include -ansi
-DTIXML_USE_STL -O2 -ffast-math -DCB_AUTOCONF -O2 -pipe -fstack-protector
-fno-strict-aliasing -std=c++11 -fPIC -DPIC -fexceptions -MT cbthreadpool.lo
-MD -MP -MF .deps/cbthreadpool.Tpo -c cbthreadpool.cpp  -fPIC -DPIC -o
.libs/cbthreadpool.o
In file included from cbthreadpool.cpp:18:
../../src/include/cbthreadpool.h:112:11: error: exception specification of
overriding function is more lax than base version
    class cbWorkerThread : public wxThread
          ^
/usr/include/c++/v1/memory:1409:22: note: in instantiation of template class
'std::__1::allocator<cbThreadPool::cbWorkerThread *>' requested here
    typedef typename allocator_type::value_type value_type;
                     ^
/usr/include/c++/v1/vector:337:22: note: in instantiation of template class
'std::__1::allocator_traits<std::__1::allocator<cbThreadPool::cbWorkerThread *>
<span class="quote">>' requested here</span >
    typedef typename __alloc_traits::size_type       size_type;
                     ^
/usr/include/c++/v1/vector:478:15: note: in instantiation of template class
'std::__1::__vector_base<cbThreadPool::cbWorkerThread *,
std::__1::allocator<cbThreadPool::cbWorkerThread *> >' requested
      here
    : private __vector_base<_Tp, _Allocator>
              ^
../../src/include/cbthreadpool.h:180:24: note: in instantiation of template
class 'std::__1::vector<cbThreadPool::cbWorkerThread *,
std::__1::allocator<cbThreadPool::cbWorkerThread *> >' requested here
    WorkerThreadsArray m_threads; // the working threads are stored here
                       ^
/usr/local/include/wx-2.8/wx/thread.h:563:13: note: overridden virtual function
is here
    virtual ~wxThread();
            ^
In file included from cbthreadpool.cpp:18:
../../src/include/cbthreadpool.h:188:29: error: exception specification is not
available until end of class definition
    CountedPtr<wxSemaphore> m_semaphore; // used to synchronise the Worker
Threads
                            ^
../../src/include/cbthreadpool.h:188:29: error: exception specification is not
available until end of class definition
../../src/include/cbthreadpool.h:98:9: error: exception specification is not
available until end of class definition
        ~CountedPtr() throw();
        ^
../../src/include/cbthreadpool.h:223:22: note: in instantiation of member
function 'cbThreadPool::CountedPtr<wxSemaphore>::~CountedPtr' requested here
inline cbThreadPool::cbThreadPool(wxEvtHandler *owner, int id, int
concurrentThreads, unsigned int stackSize)
                     ^
4 errors generated.
---</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>