SamrudhNelli wrote:
The program now displays this error instead of crashing :
repro.cpp:1:16: error: constexpr pointer initializer is not null
1 | constexpr int *foo = 0.;
| ^
1 error generated.
Note: We could also delay returning on the first error which leads to a more
verbose second error:
repro.cpp:1:16: error: constexpr pointer initializer is not null
1 | constexpr int *foo = 0.;
| ^
repro.cpp:1:16: error: initializing 'int *const' with an expression of
incompatible type 'double'
1 | constexpr int *foo = 0.;
| ^ ~~
2 errors generated.
https://github.com/llvm/llvm-project/pull/180376
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits