[Bug c/116631] New: [gcc] c23 - 'auto' struggles with comma expression type inference.

2024-09-06 Thread ping at zero dot ms via Gcc-bugs
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

[Bug c/116631] [gcc] c23 - 'auto' struggles with comma expression type inference.

2024-09-06 Thread ping at zero dot ms via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116631 --- Comment #1 from ping --- Post scriptum (context) : The purpose of the code is to be able to make static assertion within expressions. The trick is that static_assert is garanteed by the standard to not produce anything (https://en.cpprefer

[Bug c/116631] [gcc] c23 - 'auto' struggles with comma expression type inference.

2024-09-06 Thread ping at zero dot ms via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116631 --- Comment #3 from Sofian Touhami --- Although notice how __auto_type does not care about "underspecified object" and works in every case, although as I understood this __auto_type / auto difference is itself due to the auto specification in th

[Bug c/116631] [gcc] c23 - 'auto' struggles with comma expression type inference.

2024-09-08 Thread ping at zero dot ms via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116631 Sofian Touhami changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug c/116631] [gcc] c23 - 'auto' struggles with comma expression type inference.

2024-09-12 Thread ping at zero dot ms via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116631 Sofian Touhami changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug c/116631] [gcc] c23 - 'auto' struggles with comma expression type inference.

2024-09-12 Thread ping at zero dot ms via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116631 Sofian Touhami changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---