Open peckto opened 1 month ago
I did some investigating and it seems that CDT wants to log that it cannot resolve this ambiguous node here. Unfortunately, it seems that its logging infrastructure comes from the eclipse editor / OSGi environment and we are not setting this up, but rather just (mis)using the CDT classes directly. Therefore it fails to find the logger. I will try to circumvent this somehow.
Stack trace
Code of interest
Extensions to the library, e.g. added or changed LanguageFrontends or Passes
No
Changes to the configuration
Details
The code compiles fine with gcc, but fails with clang:
If the order of the declarations is changed, the bug does not appear. CDT is also happy, if the function return type is specified. Interesting enough, that gcc does not complain. Still, CDT should not crash in any case.