Issue |
136254
|
Summary |
[Regression] Clang accepts a syntactically invalid use of uniform_int_distribution<>(1, );
|
Labels |
clang
|
Assignees |
|
Reporter |
GINN-Imp
|
Clang-trunk accepts the following code without producing any syntax error.
https://godbolt.org/z/dnW5oWY84
```cpp
#include <bits/stdc++.h>
using namespace std;
int a() {
uniform_int_distribution<>(1, );
return 0;
}
```
Expected (Clang 19):
```
<source>:4:35: error: expected _expression_
4 | uniform_int_distribution<>(1, );
| ^
1 error generated.
ASM generation compiler returned: 1
```
bisect to https://github.com/llvm/llvm-project/commit/925e1956cd5039fa2489b802d25555e247c34175
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs