<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/59422>59422</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
source_location providing inconsistent output from gcc when compiling with -stdlib=libstdc++
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
danielh2942
</td>
</tr>
</table>
<pre>
In this minimal example obtained from cppreference
https://godbolt.org/z/brM8WjT6z
source_location::function_name() should return a non-zero NTBS
where on clang++-15 it does not
however, when run on GCC it seemingly returns the output of ```__PRETTY_FUNCTION__``` for the calling function
I'm not sure if this is a libstdc++ issue or a clang++ issue so I'm going to report it in both locations
thanks :)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcUt1unDoQfhpzM9oVGPaHCy6ym8NRLk5O1W5V9QoZM4BT40H2kG3y9BWwadNICAT4m_n-VAimc4iF2J3E7j5SE_fki0Y5g7aXeSajmpqX4sEB9ybAYJwZlAX8qYbRIlDNyjhsoPU0gB5Hjy16dBpFfC_iu_XeM49BpHdClkKWHTU1Wd6S74QsX4Usa__f8dvTZf_6HhRo8horS1qxITfD07t2cnp-q5waUMijkDmEnibbgEeevAMFjtzmFT3B4-X0ZZ117dEjkANtleuEPAl52iQ7MAwNYQBHfGNKV3xGL-QZrj068JObYf-ez_PZgDgY19mX27IA3CPQxOPEQC2IfbxeVfXp8z-Xy_eq_Pp4vjz8_1hVv_9BS37BaWWtcR28aVoZPAh5GGZCECaPYNrVeBNAgTV14Eav_MGEMCGQB_Ve1u1zIFgndTTvYAKPI3meZRgHNXEPb9aG97Zzr9yPAEtaedQUaZOnuYqwSPaHeB-nxyyL-iLbt22i1T7XWXvQ-SHVmOSJzuQux6zOdGQKGUuZyDhP9ukhOW53SXZodbyTR6VjfdQii3FQxm6tfR7mLkQL8WKXZ1JGVtVow9JKKR1eV1VCyrmkvpgxm3rqgshiawKHP1PYsMXiQ3lg9PRsmtkJ4zS5YAKj47folvJ2Wq-ZaxpGsyRzNdzDJnBjTS3S-7_sjyZviw_FNtxP9VbTIGQ5E7o9NqOnJ9QsZLnICEKWi8xfAQAA__95fSNQ">