[Bug c/112101] feature request: typeof_arg for extracting the type of a function's (or function pointer's) arguments

2023-10-27 Thread malekwryyy at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112101 --- Comment #2 from Abdulmalek Almkainzi --- Another correction, I'm sorry, its a bit hard to write hypothetical code. the macro print_func: #define print_func(f) \ printf( \ _Generic( (__typeof_arg(f, 0)){0}, \ int: #f "(int)", \

[Bug c/112101] feature request: typeof_arg for extracting the type of a function's (or function pointer's) arguments

2023-10-26 Thread malekwryyy at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112101 --- Comment #1 from Abdulmalek Almkainzi --- correction for the gurantee_type macro: #define gurantee_type(exp, type) \ _Generic(exp, type: exp, default: (type){0})

[Bug c/112101] New: feature request: typeof_arg for extracting the type of a function's (or function pointer's) arguments

2023-10-26 Thread malekwryyy at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112101 Bug ID: 112101 Summary: feature request: typeof_arg for extracting the type of a function's (or function pointer's) arguments Product: gcc Version: unknown Status:

[Bug c/111421] constexpr not working with array subscript

2023-09-15 Thread malekwryyy at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111421 --- Comment #3 from Abdulmalek Almkainzi --- (In reply to jos...@codesourcery.com from comment #1) > See the definitions of "named constant" and "compound literal constant". > Array element accesses aren't allowed, and the example you have

[Bug c/111421] New: constexpr not working with array subscript

2023-09-14 Thread malekwryyy at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111421 Bug ID: 111421 Summary: constexpr not working with array subscript Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c