<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/59404>59404</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[C++20 Modules, Question] Module named "module"
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Arthapz
</td>
</tr>
</table>
<pre>
Hi, when trying to build a C++20 module named
```
export module module:parta;
export int a() {
return 0;
}
```
```
/usr/sbin/clang -c -x c++-module --precompile -Qunused-arguments -m64 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -std=c++2b -fmodules -fbuiltin-module-map -fimplicit-modules -DNDEBUG -fmodules-cache-path=build/.gens/with_named_modules/linux/x86_64/release/rules/modules/cache -o build/.gens/with_named_modules/linux/x86_64/release/rules/modules/cache/MyModule-part.pcm build/.gens/with_named_modules/linux/x86_64/release/cpp_to_mpp/mymodule_part.mpp
```
```
error: 'module' is an invalid name for a module
```
Shouldn't "module" keyword to be contextual allowing this ? (gcc and msvc work fine with this)
i'm using llvm builded from main branch
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVE2vqzYQ_TWTzcgR1xAgCxY3l9JubqunquvI2AO4z9jINvnor68gpHmVXqVKrRTFeHzmzHh8ZkQIurdEFRxOcKh3Yo6D89W7j4OY_ti1Tt2rnzTwD7wOZDH6u7Y9RoftrI1CgR_AT8BPPMHRqdkQWjGSQkhqSN63_zzZfuuWbpPz8Ql_LJC-T8JHAenpW88Nqm1EAbwEfkQoNgR6irO3mLx8ivq7Ab9v5M0cPPAmtNoCb6QRtkcmkd1QPu7EthQZmzxJN0562XyZ7RxIMeH7eSQbA7Ixz5B1Fx10q42Od0jrQStF9m9Wpq3RlgJ7nv2SIgtRQVpvAXmLrHsEDci6pcRR2y0NNooJWafHyWipI_sLV_9c_3D67ceXK5NCDsQmEQdI6_WhgDf7nmwA3lx1HM7rI503PPDGaDvfgDe3Mj_nGfDGkyERaPnaIC_wSo9s08D_Tw28-bx_Pi69qGI_yfE_x5LTdI7uPE7TEvD-8Dmv9IvtX-uGvHce0ncEXmza5QXqgMKithdhtFpbADvnUTzl_c_0vw5uNsoCLyIC509Kjl_pfnVerb1GKJ2NdIuzMCiMcde1CwcdENIGgZe9lCiswjFcJF6d_4qdtoRLlVYc8OMjnl7yxjksBMZctsKSws67EUehLbZeWDnsVJWqY3oUO6re8iI5pMkxP-6G6liWiiRlWaESkRRJkWfpG6m0O1CZ5gfa6YonnL_xpFzWLNsfEt7lZZEnbSllW7SQJTQKbfZLAnvn-50OYabqcMySbGdESyasA4lzS1dcD4HzZT75avFh7dwHyBKjQwwvlqijWSfZayh9PrXxgV9mClE7C4d6Mz9n1Tdl383eVEOMU4B0mRHAm17HYW730o2LwszlubDJu99JRuDNmuEiwPUGfwYAAP__tOCudw">