]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Setup aliases imported from modules [PR106820]
authorNathaniel Shead <nathanieloshead@gmail.com>
Sat, 17 Feb 2024 12:10:49 +0000 (23:10 +1100)
committerNathaniel Shead <nathanieloshead@gmail.com>
Sun, 14 Apr 2024 10:55:33 +0000 (20:55 +1000)
commit62a0ef0d02cbb74cd865c1db2ecb7ca1b11f87cd
treecb71e03bdad0a8c84402e2c6e20f023aac9d0f2a
parent3319d1a4aa5ccadc22dcb80252ab884c792b263b
c++: Setup aliases imported from modules [PR106820]

I wonder if more generally we need to be doing more work when importing
definitions from header units especially to handle all the work that
'make_rtl_for_nonlocal_decl' and 'rest_of_decl_compilation' would have
been performing. But this patch fixes at least one missing step.

PR c++/106820

gcc/cp/ChangeLog:

* module.cc (trees_in::decl_value): Assemble alias when needed.

gcc/testsuite/ChangeLog:

* g++.dg/modules/pr106820_a.H: New test.
* g++.dg/modules/pr106820_b.C: New test.

Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
gcc/cp/module.cc
gcc/testsuite/g++.dg/modules/pr106820_a.H [new file with mode: 0644]
gcc/testsuite/g++.dg/modules/pr106820_b.C [new file with mode: 0644]