aalmkainzi wrote:

currently in main, the second constexpr fails.

```C
const int a = 1;
constexpr int b = (int){a};

int main()
{
    constexpr int b = (int){a};
}
```

The difference stems from the special handling of file scope compound literal. 
their initializers are converted to constexpr

https://github.com/llvm/llvm-project/pull/232825
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to