
Close https://github.com/llvm/llvm-project/issues/62112 In the previous change, we'll stop parsing directly after we found reserved module names. But this may be too aggressive. This patch changes this. Note that the parsing will still be stopped if the module name is `module` or `import`.
8 lines
235 B
C++
8 lines
235 B
C++
// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s
|
|
// expected-no-diagnostics
|
|
|
|
// Demonstrate that we don't consider use of 'std' a reserved identifier if it
|
|
// is not the first part of the path.
|
|
export module should_succeed.std;
|
|
|