-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Open
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer
Description
| Bugzilla Link | 9095 |
| Version | trunk |
| OS | All |
| Reporter | LLVM Bugzilla Contributor |
| CC | @akyrtzi,@DougGregor,@linzj |
Extended Description
In
struct foo {
};
struct bar {
bar(foo x);
};
bar y(foo());
int main(void) {
bar x(foo());
return 0;
}clang reports:
test.cc:11:8: warning: parentheses were disambiguated as a function declarator
bar x(foo());
^~~~~~~
but no warning is printed for y.
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer