Re: [PATCH] c++: Add testcase for DR 2836

2024-09-25 Thread Jason Merrill
On 9/25/24 10:00 AM, Jakub Jelinek wrote: Hi! Seems we already handle it the way the DR clarifies, if double/long double and std::float64_t have the same mode, foo has long double type (while x + y would be _Float64 in C23), so this patch just adds a testcase which verifies that. Tested on x86_

[PATCH] c++: Add testcase for DR 2836

2024-09-25 Thread Jakub Jelinek
Hi! Seems we already handle it the way the DR clarifies, if double/long double and std::float64_t have the same mode, foo has long double type (while x + y would be _Float64 in C23), so this patch just adds a testcase which verifies that. Tested on x86_64-linux, powerpc64-linux and powerpc64le-li