<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 --- - wreport causes clang 3.8-4.0: error: Segmentation fault"
   href="https://llvm.org/bugs/show_bug.cgi?id=30684">30684</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>wreport causes clang 3.8-4.0: error: Segmentation fault
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.8
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>lukebenes@hotmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=17437" name="attach_17437" title="Reproducer from /tmp">attachment 17437</a> <a href="attachment.cgi?id=17437&action=edit" title="Reproducer from /tmp">[details]</a></span>
Reproducer from /tmp

Steps to reproduce:
1. git clone <a href="https://github.com/ARPA-SIMC/wreport.git">https://github.com/ARPA-SIMC/wreport.git</a>
2. autoreconf -if 
3. ./configure
4. make

Expected result:
gcc builds without any problems

Actual Result:
1.    tests.cc:279:39: current parser token ';'
2.    tests.cc:33:1: parsing namespace 'wreport'
3.    tests.cc:34:1: parsing namespace 'wreport::tests'
4.    ../wreport/tests.h:77:59: instantiating function definition
'wreport::tests::TestCodec<wreport::BufrBulletin>::(anonymous
class)::operator()'
5.    ../wreport/tests.h:77:59: LLVM IR generation of declaration
'wreport::tests::TestCodec<wreport::BufrBulletin>::(anonymous
class)::operator()'
6.    ../wreport/tests.h:77:59: Generating code for declaration
'wreport::tests::TestCodec<wreport::BufrBulletin>::(anonymous
class)::operator()'
clang-4.0: error: unable to execute command: Segmentation fault (core dumped)
clang-4.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 4.0.0 (trunk 283963)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin
clang-4.0: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-4.0: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-4.0: note: diagnostic msg: /tmp/tests-489137.cpp
clang-4.0: note: diagnostic msg: /tmp/tests-489137.sh

This was with clang version 4.0.0 (trunk 283963)

The Debian Clang Rebuild similar results with Clang 3.8
<a href="http://clang.debian.net/logs/2016-08-30/wreport_3.6-1_unstable_clang.log">http://clang.debian.net/logs/2016-08-30/wreport_3.6-1_unstable_clang.log</a></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>