-
This does not compile with clang 18 but it does with clang 17:
https://godbolt.org/z/orMfTfxMd
This would compile with both compiler as it uses a different name for the requirement:
https://godbo…
-
| | |
| --- | --- |
| Bugzilla Link | [45331](https://llvm.org/bz45331) |
| Version | unspecified |
| OS | Windows NT |
| CC | @tambry,@zygoloid |
## Extended Description
```
struct A { s…
-
### System Info
Version: v.1.4.0
Cargo version: cargo 1.79.0 (ffa9cf99a 2024-06-03)
GCC version: 11.4.1
GPU: Compile with CUDA_COMPUTE_CAP=86 on machine without GPU (but with CUDA 12.1).
I plan t…
-
please rewrite constexpr template representation ,add c++11 support for more complier。
-
**Describe the bug**
Once you define the `CATCH_CONFIG_MAIN` definition on MinGW, it defines a non-standard main function called WinMain. This results in a lot of undefined references. This doesn't h…
-
### Describe the issue
When defining a flag of `std::string` type, the default value must be an `std::string` or `const char*`. It would be great if `std::string_view` were also accepted.
Followin…
-
Consider following minimal example:
```c++
#ifdef DEBUG
constexpr bool _debug_ = true;
#undef NDEBUG
#else
constexpr bool _debug_ = false;
#define NDEBUG
#endif
#include
void f()
{
…
-
Short example:
```cpp
template
constexpr int f()
{
return 0;
}
struct X { int i; };
constexpr auto x = X{.i=1};
constexpr int xs = f();
```
Clang rejects (every version I've tried)…
-
The following program:
```
#include
struct A {
int i;
};
struct B {
constexpr explicit B(int) {}
};
struct C {
int v;
constexpr C(std::initializer_list) : v(1) {}
…
-
Given:
```
constexpr bool q = true;
constexpr auto x = [] { return 42; };
using FTy = decltype(x);
void g(bool);
void f() {
FTy (x)() &
requires(bool (q)) { g(q); };
}
```
The `{` sho…