Issue |
90852
|
Summary |
clang should warn the use of statement _expression_ which is a GNU extension
|
Labels |
good first issue,
clang:diagnostics
|
Assignees |
|
Reporter |
usx95
|
```cpp
struct Printy {
Printy(int);
Printy(const Printy&);
~Printy();
};
void Foo() {
Printy P[] = {Printy(1), ({
int x = 2;
Printy p(x);
p;
})};
}
```
This contains statement-_expression_ which is a GNU extension. Clang should warn against the use of this non-standard extension.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs