<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 --- - Link error when using regex with clang-cl" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24165&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=UkL5tKo0sUwOChxij6yD-AK6m8ws3hxzxbBo4cK8E_I&s=fvO6GHK7iZfy3lJrTY69QTA5hBFTh1sg4QVRWlRQigA&e=">24165</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Link error when using regex with clang-cl
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>3.7
          </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>Frontend
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>russell.wallace@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When compiling the regular expression example program at
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.cplusplus.com_reference_regex_regex-5Fmatch_&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=UkL5tKo0sUwOChxij6yD-AK6m8ws3hxzxbBo4cK8E_I&s=Tzoe8ne2PS0hWSqa6Fz8qcxlEfLXspbxkSSvo_qa2m0&e=">http://www.cplusplus.com/reference/regex/regex_match/</a> clang-cl gives the
following error message:

libcpmt.lib(xthrow.obj) : error LNK2005: "private: static struct
std::_Cl_names<char> const * const std::_Regex_traits<char>::_Names"
(?_Names@?$_Regex_traits@D@std@@0QBU?$_Cl_names@D@2@B) already def
ined in a1-bec557.obj
libcpmt.lib(xthrow.obj) : error LNK2005: "private: static struct
std::_Cl_names<wchar_t> const * const std::_Regex_traits<wchar_t>::_Names"
(?_Names@?$_Regex_traits@_W@std@@0QBU?$_Cl_names@_W@2@B) alr
eady defined in a1-bec557.obj
a1.exe : fatal error LNK1169: one or more multiply defined symbols found
clang-cl.exe: error: linker command failed with exit code 1169 (use -v to see
invocation)</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>