https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116631
Bug ID: 116631
Summary: [gcc] c23 - 'auto' struggles with comma expression
type inference.
Product: gcc
Version: 14.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: ping at zero dot ms
Target Milestone: ---
The issue encountered is that the 'auto' type inference generates an error
"underspecified object initializer" where the underspecified object is not
appearing in the last operand of a comma expression, hence not supposed to have
any effect on the type inference.
Here is a reproduction : https://godbolt.org/z/c3hxqhsGo
GCC version 14.2.0 x86-64 with -std=c23 (KO).
Clang version 18.1.0 x86-64 with -std=c23 (OK).
So Clang does not have the issue.