In C++ private shouldn't be parsed as a valid address space keyword.
This only fixes C++ part, in OpenCL we should still prevent ICE on the reported code example, but I will fix it separately.
@jsji thanks for filing the bug!
Paths
| Differential D59874
[PR41247] Fixed parsing of private keyword in C++ ClosedPublic Authored by Anastasia on Mar 27 2019, 6:00 AM.
Details Summary In C++ private shouldn't be parsed as a valid address space keyword. This only fixes C++ part, in OpenCL we should still prevent ICE on the reported code example, but I will fix it separately. @jsji thanks for filing the bug!
Diff Detail
Event TimelineComment Actions Otherwise LGTM.
This revision is now accepted and ready to land.Mar 27 2019, 12:07 PM Closed by commit rL357162: [PR41247] Fixed parsing of private keyword in C++. (authored by stulova). · Explain WhyMar 28 2019, 4:47 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 192611 cfe/trunk/lib/Parse/ParseDecl.cpp
cfe/trunk/lib/Parse/ParseTentative.cpp
cfe/trunk/test/SemaOpenCLCXX/private-access-specifier.cpp
|