https://bugs.llvm.org/show_bug.cgi?id=52413
Bug ID: 52413
Summary: [C++20] [Module] Emit an error if user enables both
c++20 module and clang module
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++2a
Assignee: unassignedclangb...@nondot.org
Reporter: yedeng...@linux.alibaba.com
CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
llvm-bugs@lists.llvm.org, richard-l...@metafoo.co.uk
See https://lists.llvm.org/pipermail/cfe-dev/2021-November/069237.html for
details.
Simply, since c++20 module and clang module share the base infrastructure but
they have different semantics. It should be clear what's the behavior if the
user enables both c++20 module and clang module.
According to the discussion, the wanted behavior may be:
- If the user specify both c++20 module and clang module, emit an error.
- If the user want to use other feature other c++20 module in c++20 with clang
module, the user could make it by `-std=c++20 -fno-cxx-modules -fmodules`.
(Renaming `-fmodules` to `-fclang-modules` is another proposal. But it has a
bigger impact. Try to handle it in other PR)
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs