[all-commits] [llvm/llvm-project] 437cba: [OPENMP]Fix PR46357: Do not allow types declaratio...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Thu Jun 18 10:19:58 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 437cbad3b35c7cf0f49d2bcea05555a521651113
      https://github.com/llvm/llvm-project/commit/437cbad3b35c7cf0f49d2bcea05555a521651113
  Author: Alexey Bataev <a.bataev at hotmail.com>
  Date:   2020-06-18 (Thu, 18 Jun 2020)

  Changed paths:
    M clang/include/clang/Parse/RAIIObjectsForParser.h
    M clang/lib/Parse/ParseDeclCXX.cpp
    M clang/lib/Parse/ParseOpenMP.cpp
    M clang/test/OpenMP/declare_reduction_ast_print.cpp

  Log Message:
  -----------
  [OPENMP]Fix PR46357: Do not allow types declarations in pragmas.

Summary:
Compiler may erroneously treat current context in OpenMP pragmas as the
context where new type declaration/definition is allowed. But the
declartation/definition of the new types in OpenMP pragmas should not be
allowed.

Reviewers: jdoerfert

Subscribers: yaxunl, guansong, sstefan1, cfe-commits, caomhin

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82019




More information about the All-commits mailing list