llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Openmp test Segmentation fault in in clang::CanonicalDeclPtr<clang::Decl>::operator clang::Decl const* (this=0x10f900543)

Open jyu2-git opened this issue 6 years ago • 3 comments

Bugzilla Link 45987
Resolution FIXED
Resolved on May 21, 2020 08:11
Version trunk
OS All
CC @yxsamliu

Extended Description

class B { public: void barB(int *isHost) { #pragma omp target map(tofrom: isHost) { *isHost = omp_is_initial_device(); } } };

class A : public B { public: void barA(int *isHost) { #pragma omp target map(tofrom: isHost) { barB(isHost); } } };

clang -cc1 -fopenmp j.cpp PLEASE submit a bug report to https://software.intel.com/en-us/support/priority-support and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: clang -cc1 -fopenmp j.cpp

  1.  <eof> parser at end of file
    

...

This failed after change set:

2c31aa2de13a23a00ced87123b92e905f2929c7b fail Author: Yaxun (Sam) Liu [email protected] Date: Wed Apr 1 23:26:56 2020 -0400

Speed up deferred diagnostic emitter

jyu2-git avatar May 18 '20 22:05 jyu2-git

fixed by 3ef11346f391e6e3da0cfa25f9f7dac22771438e

yxsamliu avatar May 21 '20 15:05 yxsamliu

Thanks for reporting. I will fix it.

yxsamliu avatar May 20 '20 03:05 yxsamliu

assigned to @yxsamliu

jyu2-git avatar May 18 '20 22:05 jyu2-git