[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 5 19:55:50 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99377
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Nathan Sidwell <nathan@gcc.gnu.org>:
https://gcc.gnu.org/g:1e5cdb9f896fb220b26fd2080406504c4badf5af
commit r11-7530-g1e5cdb9f896fb220b26fd2080406504c4badf5af
Author: Nathan Sidwell <nathan@acm.org>
Date: Fri Mar 5 10:34:23 2021 -0800
c++: Local instantiations of imported specializations [PR 99377]
This turned out to be the function version of the previous fix. We
can import an implicit specialization declaration that we need to
instantiate. We must mark the instantiation so we remember to stream
it.
PR c++/99377
gcc/cp/
* pt.c (instantiate_decl): Call set_instantiating_module.
gcc/testsuite/
* g++.dg/modules/pr99377_a.H: New.
* g++.dg/modules/pr99377_b.C: New.
* g++.dg/modules/pr99377_c.C: New.
More information about the Gcc-bugs
mailing list