<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - Compile error(Segmentation fault) occurs when -O2 or more is set"
   href="https://bugs.llvm.org/show_bug.cgi?id=40756">40756</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Compile error(Segmentation fault) occurs when -O2 or more is set
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>ueno.masakazu@jp.fujitsu.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=21487" name="attach_21487" title="BUG REPORT(bug499-2a2a42.c, bug499-2a2a42.sh)">attachment 21487</a> <a href="attachment.cgi?id=21487&action=edit" title="BUG REPORT(bug499-2a2a42.c, bug499-2a2a42.sh)">[details]</a></span>
BUG REPORT(<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Mangler.h is in the wrong place?"
   href="show_bug.cgi?id=499">bug499</a>-2a2a42.c, <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Mangler.h is in the wrong place?"
   href="show_bug.cgi?id=499">bug499</a>-2a2a42.sh)

When compiling the following program(<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Mangler.h is in the wrong place?"
   href="show_bug.cgi?id=499">bug499</a>.c) with -O2 or more, Segmentation
fault occurs and output the following message.

* Tail of error message
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-9: note: diagnostic msg: /tmp/<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Mangler.h is in the wrong place?"
   href="show_bug.cgi?id=499">bug499</a>-2a2a42.c
clang-9: note: diagnostic msg: /tmp/<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Mangler.h is in the wrong place?"
   href="show_bug.cgi?id=499">bug499</a>-2a2a42.sh
clang-9: note: diagnostic msg:

* source program (<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Mangler.h is in the wrong place?"
   href="show_bug.cgi?id=499">bug499</a>.c)
#include <stdio.h>
int main () {
  int i=0,j=0;
  int v1=1,v2=2,v3=3;

  for(i=0;i<1;i++) {
    for(j=0; j<29; ++j) {
      v3 = (v1 + v3) *v1;
      v1=v2 * v3;
    }
    v2=1;
  }
  printf("%d %d %d \n",v1,v2,v3);

  return 0;
}</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>