Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
saagarjha
7y ago
0 comments
Save
Share
Clang accepts it, but GCC does not. I suspect there's a bug here.
0 comments
1 comments · 1 top-level
top
newest
oldest
foldr
7y ago
It fails because gcc appears not to support _Generic by default, but that's not the important part of the code. If you comment out the printf, or figure out which compiler options to set, gcc will compile it.
j
/
k
navigate · click thread line to collapse