[Bug c++/106820] [modules] internal compiler error: in function_and_variable_visibility [for std::shared_ptr<data>{b,??} use via <memory> header unit]: mishandling of "weak" usage generated via __gthrw(pthread_mutex_unlock) use
ppalka at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Oct 12 14:29:09 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106820
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ppalka at gcc dot gnu.org
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=104433
--- Comment #9 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Reduced:
$ cat 106820_a.H
static int __gthrw___pthread_key_create() __attribute__((__weakref__("foo")));
$ cat 106820_b.C
import "106820_a.H";
int main() {
__gthrw___pthread_key_create();
}
$ g++ -fmodules-ts 106820_a.H 106820_b.C
106820_b.C:5:1: internal compiler error: in function_and_variable_visibility,
at ipa-visibility.cc:712
More information about the Gcc-bugs
mailing list