<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 - Regression since "Do not create LLVM IR `constant`s for objects with dynamic initialisation""
   href="https://bugs.llvm.org/show_bug.cgi?id=51442">51442</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Regression since "Do not create LLVM IR `constant`s for objects with dynamic initialisation"
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>All
          </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>martin@martin.st
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>hans@chromium.org, htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, momchil.velikov@arm.com, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>51236
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Since 21aa107eb79f8ddc5e7ca4e8f3476338dfa90049,
<a href="https://reviews.llvm.org/D102693">https://reviews.llvm.org/D102693</a>, 'Reland "Do not create LLVM IR `constant`s
for objects with dynamic initialisation"', the following C++ snippet fails to
compile:

$ cat fakeplugin2.cpp 
__attribute__ ((section (".qtmetadata"))) __attribute__((used)) void *const
pluginSection = (void*)(0xc0ffeec0ffeeL);
__attribute__ ((section (".qtmetadata"))) __attribute__((used)) const char
message[] = "QTMETADATA";

$ clang -target x86_64-linux-gnu -c fakeplugin2.cpp
fakeplugin2.cpp:2:76: error: 'message' causes a section type conflict with
'pluginSection'
__attribute__ ((section (".qtmetadata"))) __attribute__((used)) const char
message[] = "QTMETADATA";
                                                                           ^ 
fakeplugin2.cpp:1:77: note: declared here
__attribute__ ((section (".qtmetadata"))) __attribute__((used)) void *const
pluginSection = (void*)(0xc0ffeec0ffeeL);
                                                                            ^ 
1 error generated.</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [meta] 13.0.0 Release Blockers"
   href="https://bugs.llvm.org/show_bug.cgi?id=51236">Bug 51236</a>] [meta] 13.0.0 Release Blockers
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>