Closed kylefurlong closed 2 months ago
@llvm/issue-subscribers-clang-frontend
Author: Kyle Furlong (kylefurlong)
Could you please try to reproduce problem in LLVM (not Apple) 19 main
branch? https://godbolt.org should be helpful.
Please provide reproducer.
Mystery solved in the light of day. I name variables incorrectly.
Note below that the error indicators actually point to the beginning brace of the flow function call, and the parser tells us that the flow_t object isn't a function or function pointer. Not where where this is getting mucked, but it sure isn't correct behavior.
(env) kylefurlong@Kyles-Mac-mini flow % clang -std=c17 -pedantic -O2 -g -I$(brew --prefix zeromq)/include -I$(brew --prefix zeromq)/lib -o stream streamer.c streamer.c:24:9: error: called object type 'flow_t' (aka 'struct not_flow_t') is not a function or function pointer flow(NULL, NULL, &flow);