diff options
author | Nathan Sidwell <nathan@acm.org> | 2021-01-05 05:18:50 -0800 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2021-01-05 05:28:23 -0800 |
commit | 6ffaffd5d10e1d7daee5e1b889bfc8de06ef1a4b (patch) | |
tree | 13bd272371a182698068a8d7d8822fe0c5c2dc05 /gcc/go | |
parent | af60b0ec79e9c5d7116122b185e44927aca5aa07 (diff) | |
download | gcc-6ffaffd5d10e1d7daee5e1b889bfc8de06ef1a4b.zip gcc-6ffaffd5d10e1d7daee5e1b889bfc8de06ef1a4b.tar.gz gcc-6ffaffd5d10e1d7daee5e1b889bfc8de06ef1a4b.tar.bz2 |
[c++]: Improve module-decl diagnostics [PR 98327]
The diagnostic for a misplaced module decl was essentially 'computer
says no', which isn't the most helpful. This adjusts it to indicate
what would be acceptable.
gcc/cp/
* parser.c (cp_parser_module_declaration): Alter diagnostic
text to say where is permissable.
gcc/testsuite/
* g++.dg/modules/mod-decl-1.C: Adjust.
* g++.dg/modules/p0713-2.C: Adjust.
* g++.dg/modules/p0713-3.C: Adjust.
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions