Skip to content

Improve C3083 error reference #5661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Rageking8
Copy link
Contributor

  • Update outdated error message and add blockquotes
  • Add "Remarks" heading and overhaul its content since "A function was called incorrectly." is too vague
  • Fix example as the old one no longer emits C3083
  • Update metadata

Other examples

// C3083.cpp

namespace A
{
    void func() {}
}

int main()
{
    A::A::func();   // C3083
}
C:\Test>cl C3083.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.44.35214 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

C3083.cpp
C3083.cpp(10): error C2039: 'A': is not a member of 'A'
C3083.cpp(3): note: see declaration of 'A'
C3083.cpp(10): error C3083: 'A': the symbol to the left of a '::' must be a type

Another one about missing includes:

// C3083.cpp

// #include <chrono>

int main()
{
    auto n = std::chrono::system_clock::now();   // C3083 and many others
}
C:\Test>cl C3083.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.44.35214 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

C3083.cpp
C3083.cpp(7): error C2039: 'chrono': is not a member of 'std'
predefined C++ types (compiler internal)(357): note: see declaration of 'std'
C3083.cpp(7): error C2039: 'system_clock': is not a member of 'std'
predefined C++ types (compiler internal)(357): note: see declaration of 'std'
C3083.cpp(7): error C3083: 'chrono': the symbol to the left of a '::' must be a type
C3083.cpp(7): error C3083: 'system_clock': the symbol to the left of a '::' must be a type
C3083.cpp(7): error C2039: 'now': is not a member of 'std'
predefined C++ types (compiler internal)(357): note: see declaration of 'std'
C3083.cpp(7): error C3861: 'now': identifier not found

Copy link
Contributor

@Rageking8 : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

Copy link
Contributor

Learn Build status updates of commit 5f6fa92:

✅ Validation status: passed

File Status Preview URL Details
docs/error-messages/compiler-errors-2/compiler-error-c3083.md ✅Succeeded

For more details, please refer to the build report.

Copy link
Contributor

PRMerger Results

Issue Description
File Change Percent This PR contains file(s) with more than 30% file change.

@v-dirichards
Copy link
Contributor

@TylerMSFT

Can you review the proposed changes?

Important: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@prmerger-automator prmerger-automator bot added the aq-pr-triaged Tracking label for the PR review team label Aug 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants