diff options
author | Nathaniel Shead <nathanieloshead@gmail.com> | 2025-01-19 15:26:03 +1100 |
---|---|---|
committer | Nathaniel Shead <nathanieloshead@gmail.com> | 2025-01-21 09:35:15 +1100 |
commit | 2fcb0c079530b019586e5693f057d2eb72855e70 (patch) | |
tree | e4ead205e00e072cdb01e15e808af219166104bb /gcc/cfgloopmanip.cc | |
parent | 5c0e1879ea639dc527d3928af877d3df985e3f13 (diff) | |
download | gcc-2fcb0c079530b019586e5693f057d2eb72855e70.zip gcc-2fcb0c079530b019586e5693f057d2eb72855e70.tar.gz gcc-2fcb0c079530b019586e5693f057d2eb72855e70.tar.bz2 |
c++/modules: Check linkage of structured binding decls
When looking at PR c++/118513 I noticed that we don't currently check
the linkage of structured binding declarations in modules. This patch
adds those checks, and corrects decl_linkage to properly recognise
structured binding declarations as potentially having linkage.
gcc/cp/ChangeLog:
* parser.cc (cp_parser_decomposition_declaration): Check linkage
of structured bindings in modules.
* tree.cc (decl_linkage): Structured bindings don't necessarily
have no linkage.
gcc/testsuite/ChangeLog:
* g++.dg/modules/export-6.C: Add structured binding tests.
* g++.dg/modules/hdr-2.H: Likewise.
Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Diffstat (limited to 'gcc/cfgloopmanip.cc')
0 files changed, 0 insertions, 0 deletions