<html>
    <head>
      <base href="http://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.2 C++ SEGV"
   href="http://llvm.org/bugs/show_bug.cgi?id=15897">15897</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-3.2 C++ SEGV
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.2
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>sneumann@ipb-halle.de
          </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>Created <span class=""><a href="attachment.cgi?id=10455" name="attach_10455" title="c++ source and stderr output">attachment 10455</a> <a href="attachment.cgi?id=10455&action=edit" title="c++ source and stderr output">[details]</a></span>
c++ source and stderr output

Hi, 

I am new to clang and bug reporting, so if there's sth missing 
pleas point me at it and I'll try to help as best as I can.

I am trying to compile a mid-sized project using some boost code,
and clang SEGV's on it. The code works fine on several versions of gcc,
and has been reported to work with clang-3.1 and earlier.

I attached a ZIP containing the *.cpp and *.sh file 
created by clang++ -v and the trace information on stderr.

I removed all optimisation etc. options down to:
clang++ -v -I. -c boost/regex/src/fileiter.cpp -o boost/regex/src/fileiter.o
and the SEGV remains. 

The development system is ubuntu 12.04, with clang pulled from 
<a href="https://launchpad.net/~kxstudio-team/+archive/builds">https://launchpad.net/~kxstudio-team/+archive/builds</a>,
versions are shown below.

If I run the shell script in the attachement, it reports 20+ errors. 
Could the SEGV be a subsequent problem ? But why do I get 
a SEGV instead of the error messages when just running clang++ ?

Yours,
Steffen

ii  clang                                  3.2-1~exp5ubuntu1~precise1          
   C, C++ and Objective-C compiler (LLVM based)
ii  clang-3.2                              3.2-1~exp5ubuntu1~precise1          
   C, C++ and Objective-C compiler (LLVM based)
ii  compiler-rt                            3.2-1~exp5ubuntu1~precise1          
   Runtime C library - LLVM based
ii  libllvm3.0                             3.0-4ubuntu1                        
   Low-Level Virtual Machine (LLVM), runtime library
ii  libllvm3.0:i386                        3.0-4ubuntu1                        
   Low-Level Virtual Machine (LLVM), runtime library
ii  libllvm3.2                             3.2-2ubuntu3~precise1               
   Low-Level Virtual Machine (LLVM), runtime library
ii  llvm-3.2                               3.2-2ubuntu3~precise1               
   Low-Level Virtual Machine (LLVM)
ii  llvm-3.2-dev                           3.2-2ubuntu3~precise1               
   Low-Level Virtual Machine (LLVM), libraries and headers
ii  llvm-3.2-runtime                       3.2-2ubuntu3~precise1               
   Low-Level Virtual Machine (LLVM), bytecode interpreter</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>