Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Namespace inline mismatch diagnostic refers to unhelpful previous definition #50794

Closed
Assignees
FabianWolff
Labels
bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"
@tbaederr

Description

@tbaederr
Bugzilla Link51452
Versiontrunk
OSLinux
CC@zygoloid

Extended Description

See:https://godbolt.org/z/x87K78TnW

Take this C++ code:

1: inline namespace abc {};
2: namespace abc {};
3: namespace abc {};

Clang will emit a warning for line 2, because the namespace is re-opened as non-inline, while the previous definition was inline. It will add a Note for the previous definition, in this case line 1.

However, it will also emit the same warning for line 3. In this case, it would be helpful to have the Note refer to the definition in line 1, but it instead refers to line 2. That is confusing since the problem is the inline mismatch, but the Note refers to a definition that is not inline.

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp