cppparser icon indicating copy to clipboard operation
cppparser copied to clipboard

Issue with variable initializer list...

Open mischievous opened this issue 2 years ago • 1 comments

I have this snippet of code and I keep getting the error "Error: Unexpected '.', while in context=ctxGeneral(1), found at line#624". GCC/Clang both support this with out issue.

void processor64::pipe_thread (void) { pipeChannel pipe = {.raw = 0};
}

mischievous avatar Nov 23 '22 23:11 mischievous

Designated initializer is C++ 20 feature. CppParser will support this too. As of now, I am busy refactoring that will improve the object model and APIs. After I am done with that I will add a support for this.

satya-das avatar Nov 30 '22 07:11 satya-das