aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/module.cc
diff options
context:
space:
mode:
authorNathaniel Shead <nathanieloshead@gmail.com>2024-08-07 19:17:52 +1000
committerNathaniel Shead <nathanieloshead@gmail.com>2024-08-08 12:47:29 +1000
commitc0ad382caa38873bb6078edf5314930504bc01f1 (patch)
tree0dbf424554aedbc4b9090f568cf6c2e24d9ff1cc /gcc/cp/module.cc
parentea973bd4929e113ad438c9fc385c68dac88490aa (diff)
downloadgcc-c0ad382caa38873bb6078edf5314930504bc01f1.zip
gcc-c0ad382caa38873bb6078edf5314930504bc01f1.tar.gz
gcc-c0ad382caa38873bb6078edf5314930504bc01f1.tar.bz2
c++/modules: Clarify error message in read_enum_def
This error message reads to me the wrong way around, particularly in the context of other errors. Updated so that the ellipsis connect. gcc/cp/ChangeLog: * module.cc (trees_in::read_enum_def): Clarify error. gcc/testsuite/ChangeLog: * g++.dg/modules/enum-bad-1_b.C: Update error message. Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Diffstat (limited to 'gcc/cp/module.cc')
-rw-r--r--gcc/cp/module.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc
index 723f089..0f3e1d9 100644
--- a/gcc/cp/module.cc
+++ b/gcc/cp/module.cc
@@ -12687,9 +12687,9 @@ trees_in::read_enum_def (tree defn, tree maybe_template)
if (known_decl && new_decl)
{
inform (DECL_SOURCE_LOCATION (new_decl),
- "... this enumerator %qD", new_decl);
+ "enumerator %qD does not match ...", new_decl);
inform (DECL_SOURCE_LOCATION (known_decl),
- "enumerator %qD does not match ...", known_decl);
+ "... this enumerator %qD", known_decl);
}
else if (known_decl || new_decl)
{