diff options
author | Nathaniel Shead <nathanieloshead@gmail.com> | 2024-05-25 01:03:54 +1000 |
---|---|---|
committer | Nathaniel Shead <nathanieloshead@gmail.com> | 2024-05-25 10:31:55 +1000 |
commit | 28b508233a12c13295f960a2cb8a4864879acfb4 (patch) | |
tree | adb51a279ef16bbc659ada1db478857b9f648f68 /libcpp | |
parent | 6c0b7e12e51cfcc58d6b7dfe9c822c7a720fddd7 (diff) | |
download | gcc-28b508233a12c13295f960a2cb8a4864879acfb4.zip gcc-28b508233a12c13295f960a2cb8a4864879acfb4.tar.gz gcc-28b508233a12c13295f960a2cb8a4864879acfb4.tar.bz2 |
c++/modules: Improve diagnostic when redeclaring builtin in module [PR102345]
If a user mistakenly includes a standard library header within the
module purview, they currently get a confusing "declaration conflicts
with builtin" error. This patch updates the message to include "in
module", to help guide the user towards the likely cause.
PR c++/102345
gcc/cp/ChangeLog:
* module.cc (module_may_redeclare): Update error message.
gcc/testsuite/ChangeLog:
* g++.dg/modules/enum-12.C: Test for updated error.
Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions