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

incorrect -Winfinite-recursion warning on potentially-unevaluated operand #21668

Closed
Assignees
appmonster007
Labels
bugzillaIssues migrated from bugzillaclang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerconfirmedVerified by a second partygood first issuehttps://github.com/llvm/llvm-project/contribute
@zygoloid

Description

@zygoloid
Bugzilla Link21294
Versiontrunk
OSLinux
CC@Weverything

Extended Description

This:

  #include
int f() {
typeid(f());
return 0;
}

gives:

:2:9: warning: all paths through this function will call itself [-Winfinite-recursion]
int f() {
^

... which is not true, because in this case the operand of typeid(...) is unevaluated.

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillaclang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerconfirmedVerified by a second partygood first issuehttps://github.com/llvm/llvm-project/contribute

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