marxin / cvise

Super-parallel Python port of the C-Reduce
Other
219 stars 25 forks source link

error: no type named 'Designator' in 'clang::DesignatedInitExpr' #108

Closed cjdb closed 1 year ago

cjdb commented 1 year ago
/tmp/cvise/clang_delta/RemoveUnusedStructField.cpp:249:15: error: no type named 'Designator' in 'clang::DesignatedInitExpr'; did you mean simply 'Designator'?
        const DesignatedInitExpr::Designator *DS = DIE->getDesignator(0);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              Designator
/home/cjdb/opt/include/clang/AST/Designator.h:40:7: note: 'Designator' declared here
class Designator {
      ^
1 error generated.

Built using

$ clang --version
clang version 17.0.0 (git@github.com:llvm/llvm-project.git ae74b601e3fd20921f34ac1c48921c8ebfccb2f4)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/cjdb/opt/bin

I was able to correct this locally by changing the type-specifier to auto, but I'm not sure if that would be an acceptable upstream contribution.

marxin commented 1 year ago

Well, it builds fine with the latest GCC compiler and LLVM 16, so it's some regression for a TIP Clang compiler. Please file a bug against it.