[Bug c/108054] C2X auto with struct defined in statement expression

2022-12-18 Thread muecker at gwdg dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108054 --- Comment #3 from Martin Uecker --- It is a major usability issue for its intended use in macros if it then sometimes breaks due to arbitrary constraints (which __auto_type does not have, so do not seem to be essential). Also with the new ta

[Bug c/108054] C2X auto with struct defined in statement expression

2022-12-12 Thread joseph at codesourcery dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108054 --- Comment #2 from joseph at codesourcery dot com --- The basic principle is that auto declarations should always be writable in a form without auto, so they should never result in a type escaping to a larger scope (but a rule expressed in th

[Bug c/108054] C2X auto with struct defined in statement expression

2022-12-10 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108054 --- Comment #1 from Andrew Pinski --- Statement expressions are an extension after all. Gcc could define it any way it wants.