diff options
author | Nathan Sidwell <nathan@acm.org> | 2021-02-12 08:43:09 -0800 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2021-02-12 13:50:03 -0800 |
commit | 8c4137c7ead515baaf1ac8340edeb3a442388b5b (patch) | |
tree | d6ccd7dde1ca9927baaefec183c28bd9619e0546 /gcc/d/dmd/json.c | |
parent | 0c27fe96f812df76ca07272d3c68765bd1f9dc08 (diff) | |
download | gcc-8c4137c7ead515baaf1ac8340edeb3a442388b5b.zip gcc-8c4137c7ead515baaf1ac8340edeb3a442388b5b.tar.gz gcc-8c4137c7ead515baaf1ac8340edeb3a442388b5b.tar.bz2 |
c++: Seed imported bindings [PR 99039]
As mentioned in 99040's fix, we can get inter-module using decls. If the
using decl is the only reference to an import, we'll have failed to
seed our imports leading to an assertion failure. The fix is
straight-forwards, check binding contents when seeding imports.
gcc/cp/
* module.cc (module_state::write_cluster): Check bindings for
imported using-decls.
gcc/testsuite/
* g++.dg/modules/pr99039_a.C: New.
* g++.dg/modules/pr99039_b.C: New.
Diffstat (limited to 'gcc/d/dmd/json.c')
0 files changed, 0 insertions, 0 deletions