<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 --- - error in backend: assembler label L?xxx$parent_frame_offset can not be undefined (MSVC, SEH-related)"
   href="https://llvm.org/bugs/show_bug.cgi?id=30431">30431</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>error in backend: assembler label L?xxx$parent_frame_offset can not be undefined (MSVC, SEH-related)
          </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>Windows NT
          </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>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>reupenllvm@forward.cat
          </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>While compiling my source tree under LLVM-4.0.0-r281648-win64.exe and MSVC
2015, the following compilation error happens for debug builds:

CL : fatal error : error in backend: assembler label
'L?query_cpu_feature_set@pfc@@YA_NI@Z$parent_frame_offset' can not be undefined
[F:\foobar2000\columns_ui\pfc\pfc.vcxproj]

This does not happen in release builds. This happens in previous versions of
LLVM/Clang too.


To reproduce, open a VS2015 x86 Native Tools command prompt and run:

git clone --recursive <a href="https://github.com/reupen/columns_ui.git">https://github.com/reupen/columns_ui.git</a>
cd columns_ui
msbuild /m /p:PlatformToolset=LLVM-vs2014 /p:Platform=Win32
/p:Configuration=Debug /t:Rebuild vc14\columns_ui-public.sln

The problematic function is defined here:
<a href="https://github.com/reupen/pfc/blob/07bdb04d9eef8a03fada2c3ee6f364039cb4a1b5/cpuid.cpp#L7">https://github.com/reupen/pfc/blob/07bdb04d9eef8a03fada2c3ee6f364039cb4a1b5/cpuid.cpp#L7</a>

Removing the usage of SEH makes the problem go away. Release builds also work.</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>