diff options
author | Nathaniel Shead <nathanieloshead@gmail.com> | 2023-11-12 22:49:45 +1100 |
---|---|---|
committer | Nathaniel Shead <nathanieloshead@gmail.com> | 2023-11-24 12:30:07 +1100 |
commit | d89903ff29473e6e64f032ecee5c72d1584546dc (patch) | |
tree | 250b296dfaf72ecbecc54165810d7310054e3e86 /gcc/expr.cc | |
parent | 6fb55db0e113399789cc0bb165533355801d5990 (diff) | |
download | gcc-d89903ff29473e6e64f032ecee5c72d1584546dc.zip gcc-d89903ff29473e6e64f032ecee5c72d1584546dc.tar.gz gcc-d89903ff29473e6e64f032ecee5c72d1584546dc.tar.bz2 |
c++: check mismatching exports for class tags [PR98885]
Checks for exporting a declaration that was previously declared as not
exported is implemented in 'duplicate_decls', but this doesn't handle
declarations of classes. This patch adds these checks and slightly
adjusts the associated error messages for clarity.
PR c++/98885
gcc/cp/ChangeLog:
* decl.cc (duplicate_decls): Adjust error message.
(xref_tag): Adjust error message. Check exporting decl that is
already declared as non-exporting.
gcc/testsuite/ChangeLog:
* g++.dg/modules/export-1.C: Adjust error messages. Remove
xfails for working case. Add new test case.
Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions