[PATCH] D80590: [WIP][OPENMP] Fix assertion error for using alignas with OpenMP directive

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 28 13:45:43 PDT 2020


ABataev added a comment.

Investigated the bug. Seems to me, the bug is not related to OpenMP. The following code crashes the compiler too:

  struct FOO
  {
    static const int vec_align_bytes = 32;
  
    void foo()
    {
      alignas(vec_align_bytes) double a;
      ;
    }
  
  };

Seems to me, the bug is in `Actions.ClassifyName` which does not clean up the list of the possibly odr-used decls. Or in the code, which tries to parse the align argument `Parser::ParseAlignArgument`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80590/new/

https://reviews.llvm.org/D80590





More information about the cfe-commits mailing list