Repository navigation
Incorrect access check within requires-clause of module-imported member function template #230
cpplearner
started this conversation in
Issue Triage - Compilation
Replies: 1 comment
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Issue Summary
In a call to a member function template of a class imported from (MSVC-generated) IFC file, EDG incorrectly believes that a private member in the requires-clause is inaccessible.
Since this pattern is used by MSVC STL's
std::ranges::begin, this bug affects most uses of intelliSense withimport std;andstd::ranges.Reproducing Source Code
mod1.ixx(compiled with MSVC'scl.exe /c /std:c++20 mod1.ixx):example.cxx(compiled with\CXX\edgcpp-compiler\build\msvc-release\bin\cpfe.exe --ms_c++20 --modules example.cxx):Command-line Options
cpfe.exe --ms_c++20 --modules example.cxx
Type of Issue
[Front End] This code SHOULD compile with these options.
Additional Details
The IFC file is generated by MSVC Compiler Version 19.52.36815 for x64 (PREVIEW). The file
example.cxxcompiles fine withcl.exe /std:c++20 example.cxxand fails to compile withcl.exe /BE /std:c++20 example.cxx.Reproducing (Standard) Configuration(s)
windows-msvc-release
Reproducing (Non-standard) Configuration
No response
I acknowledge that:
LICENSE.txtfile in my.zipor.tar.gzupload. If I included aLICENSE.txtfile, any tests created using the reproducing source code will be governed by the terms of the license I provided instead.All reactions