<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/72454>72454</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
No symbol emitted for specialization of member variable template
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
opensdh
</td>
</tr>
</table>
<pre>
```cpp
struct X {
template<class> static float foo;
};
template<> constexpr int X::foo<void> =0;
auto& get() {return X::foo<void>;}
```
Clang [doesn't emit a symbol](https://godbolt.org/z/8bjrKj4cW) for `X::foo<void>` at all, producing a link error for the above. (Note that there has been a [recent change](https://cplusplus.github.io/CWG/issues/2531.html) to the implicit-inline rule here, but this result is incorrect either way.)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsk01vpDgQhn9NcSkF0earOXBIupc9rDTXmattCnDW2MguOpv8-pXp3mw0igTiwzzFU6rXMkYzO6Ie6heor5ncefGh9xu5OC6Z8uN7D01xP_S2QXGF4jly2DXjL4T25f4GEZFp3axkgvKirYwRyj8wsmSjcbJeMk7eQ_kAoL1-3n8BE6O9i0z_bAGNY_wF5TOUzwd7uXkzpk-gvBafuNzZg2hwJgZxBtElrUC8B_ctncD2-tD4r7f748VKNyPUL6On6EC0jLQaRonxfVXeQn0FcV6Yt5gKiwHEMPtRecu5DzOI4QPEcFav4a_XSv9MLpMPCE3xrUhToGSU1oK44Bb8uGvjZpRojfsbKQQfDp4XQqn8jXJEEOcfngl5kZwWAuEiIyoihzKpB9LkGPUi3UzfCevN7jGd-Wx42VVuPIjh8vNPEIOJcacIYhB1ecoXXm3qgf2hYNbNGm34yThrHGHYLWEySPpqTzomYqC4W0YT0TjtQyDNSCaZ4pt8z0F02diXY1d2MqP-1BZF0Z2aqsiWvtP6XKqGVNeqbuqaVjetakdZT1OnS6LM9KIQ5el0qkVZFVWRd6JSZUlCTFMr5EhQFbRKY3Nrb2saSXZ01LeiqqvMSkU2HlkXwtEbHosgRIp-6BPzpPY5QlVYEzn-X4UNW-p_-EcOjlQwjcd04kbaSGs-JBvv0E-40qoo4E0GI5Wlz52R7cH2v6XnPgLtVxBD-t3j8rQF_0qav87kaOLfAAAA__92Zin9">