<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJy1VE1v2zgQ_TXyZRBBoiLZOujg1MkiQLto2sUW2EtAkWOJG5p0ScqO_n2HkuN8NIdFiwUkSpwhh--9mWFr5djcJmy5g-BGZToIFrQyD-DtDuGAbgSvdnuNIKxEsAaOykh79LCE6vKiVSEp1km2SbJ1UmXzIxJ2FZ_ZygplhB5oc1J8uAsfrMOkuD45p1Fo7j3cfQ0uAkjYKmFrJdEEtVXoElaTSVjjA7xambCKfBR1Q3uquy_YDZq768e9Q--VNRFYseZG9HSk_MxDQEfGqzdo5-lRhR5odhfKiBDKNC9TRoYUbqHDAKFXHtA5654JPwU6SUKO8woYjMStMijBj7vW6mi7v5cotN8jKbSSWpOw1oVI4r-iZ6sT-b8VHqMyT_jncR1xInhOuQuKBrtHM4l6ZpbSuTSDmXB5Rf8bpFWktxjhG9cP6IBN1JNyQwf2IewjtYTd0CPPa4_T0lTY3eSpwfexLCadlPGUwJ-Fuv_nz3z1M9e8fMPzOs9f8nxN8tgr0cNbWDtuOn3GA3tnD-hjNbcI-MhF0GOk-8tCv6NF7Ij0e0iVjZOOWoHdfJ-HlntMZ0twiPTxTkxbHGrVRjM-TkvdjAfPeNI-KW7o3ZxKkBUmr3KCkL4U4dMI3UAbYFbjFnpKNQhuIl-7hcEjqJgNHmLyP37cxKSThRppS04J7ThVxSuZT9FGO0yhPFIQA_8Daz-deqBT36ObXRJSysEyUOpii6A8kf-LqvuTMn98my4pqtSjdQ8eYqOlC9kUsi5qvuBDoGQ2UtrW4WExON285kAY-6E91YrWh6fPBZXNvygiROU96Us_JauretE3UrCsjgOX7XJbrkQl622WF4UQdc6KaqF5i9o3sacYM3iEKQT9U-0sfh-BaljGWJZnRV6XeValKDMsLpeFlFnOsyVPLjPqAqXTGCe1rlu4ZgrZDp0np1Y--Gcn3aSqM4gTYEIYVNDYUKG8vOQdRvk9UDG8vdBgax1w2A5GBCrbWCh8zoqE51tiMbFoJgo_ADGyD38>52969</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            LLD on windows reports an undefined symbol for a function in a linked dependency
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ddobrev
      </td>
    </tr>
</table>

<pre>
    I'm trying to link some very simple code on windows 7 64-bit:
```c++
#include <QtCore>

class QString (*identifier)(const class QString&) = &QRegularExpression::anchoredPattern;
```
with `Qt5Core 5.15.2`. I get this error:

`windows: error: undefined symbol: __declspec(dllimport) QRegularExpression::anchoredPattern(QStringView)`

At the same time opening `Qt5Core.dll` with [`Dependency Walker 2.2`](https://dependencywalker.com/) shows this inside:

`_ZN18QRegularExpression15anchoredPatternE11QStringView`

which https://demangler.com/ proves to be exactly [QRegularExpression::anchoredPattern(QStringView)](https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/text/qregularexpression.h?h=5.15.2#n161).

My guess which I hope can be of use is that `LLD` is confused by `QStringView` which you can see in https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/text/qstringview.h?h=5.15.2#n104 isn't exported.
The MinGW linker works fine.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy1VE1v2zAM_TXOhZhhy4mTHHxIl3YosA3rNqzALoUs0bZWRcokOan__Sg7TT-2wzBggKNYpES-90i6tnKorhO23EFwgzItBAtamXvwdodwQDeAV7u9RhBWIlgDR2WkPXpYQjl_U6uQFJsk2ybZJimz6REJu4jPZGWFMkL3dDkp3t6Et9ZhUlyenOMqNPcebr4EFwEkbJWwjZJogmoUuoStySSs8QFenExYST6KuqU75c1nbHvN3eXD3qH3ypoIrNhwIzpKKT_xENCR8eIV2ml7VKED2t2ERUQIizRfpIwMKVxDiwFCpzygc9Y9EX4MdJKEHOcT0BuJjTIowQ-72upou7uTKLTfIym0klqTsNaFSOJv0bPVifw3hceozCP-ad1EnAieU-2CosXu0YyinpmllJd2MBFeXND7FukU6S0GuOX6Hh2wkXqy2FLCLoR9pJawK3rk-exxPJoKuxs9a_BdbItRJ2U8FfB3oe6-f8xXv3PNF694Xub5c54vSR47JTp4DWvHTavPeGDv7AF97OYaAR-4CHqIdP9Z6D9oESci_RlSZeOmpVFgVz-npeYe08kSHCL9eSfGKw61qqMZH8ajbsKDZzxplxRX9NueWpAVJi9zgpA-F-HDAG1PF2BS4xo6KjUIbiJf20DvEVSsBg-x-O_fb2PRyUKD1JBTQj2MXfFC5lO0wfZjKI8UxMB_YO3HrAfK-ie62ZyQUg2WgUoXRwTlifxX6u4Pyry7HT9S1KlH6-49xEFLZ7Iq5LpY81lQQWNFnJ9_rxzGSB6I1-vZhMY64ND0RgSqQOTMpwQSnhp-1jtdvdSCuHZ9feo5rQ-Pf2-o_X6giFSV91QnelmwdbmedVVZM77kvJnXcin4fMXKPFutar4Uec7zpplpXqP2VZxNxgweYQxB79SDM1WxjLEsz4p8vcizMkWZYTFfFlJmOc-WPJlnNAtKpxFHal07c9UIqe5bT06tfPBPTvqeqtYgjukoPu8DzUElpa0dHmZj6mqE_gt7FPpJ">