<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [C++20] [Module] Emit an error if user enables both c++20 module and clang module"
href="https://bugs.llvm.org/show_bug.cgi?id=52413">52413</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[C++20] [Module] Emit an error if user enables both c++20 module and clang module
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++2a
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>yedeng.yd@linux.alibaba.com
</td>
</tr>
<tr>
<th>CC</th>
<td>blitzrakete@gmail.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>See <a href="https://lists.llvm.org/pipermail/cfe-dev/2021-November/069237.html">https://lists.llvm.org/pipermail/cfe-dev/2021-November/069237.html</a> 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)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>