]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++/modules: Clarify error message in read_enum_def
authorNathaniel Shead <nathanieloshead@gmail.com>
Wed, 7 Aug 2024 09:17:52 +0000 (19:17 +1000)
committerNathaniel Shead <nathanieloshead@gmail.com>
Thu, 8 Aug 2024 02:47:29 +0000 (12:47 +1000)
commitc0ad382caa38873bb6078edf5314930504bc01f1
tree0dbf424554aedbc4b9090f568cf6c2e24d9ff1cc
parentea973bd4929e113ad438c9fc385c68dac88490aa
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>
gcc/cp/module.cc
gcc/testsuite/g++.dg/modules/enum-bad-1_b.C