Fixes the bug reported in https://bugs.llvm.org/show_bug.cgi?id=48308
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
The title doesn't match the fix. You are fixing smth in name resolution and not semantic checking.
flang/test/Semantics/bug48308.f90 | ||
---|---|---|
1 ↗ | (On Diff #309470) | I don't like the name of this test. The name should indicate what functionality it is testing, like every other test. |
flang/test/Semantics/bug48308.f90 | ||
---|---|---|
1 ↗ | (On Diff #309470) | I was thinking similar to the way GNU compiler captures them (pr48308.f90) so as to find the test quickly from the name on bugzilla. |
flang/lib/Semantics/resolve-directives.cpp | ||
---|---|---|
878 | Not specially for this patch but just a quick question: What is the ultimate standard we are targeting in Flang? 4.5 or 5.0. I have seen both in new patches and since there is no way to enforce one standard or another it feel weird to mix them. Maybe I missed this discussion but if you have any information it would be great for my personal knowledge. | |
883 | First line reference 4.5 and here 5.0 .... I think it would be nice to have a homogeneity here. |
flang/lib/Semantics/resolve-directives.cpp | ||
---|---|---|
878 | Arm's immediate requirement is to replace the existing Flang (flang-compiler/flang) compiler with llvm/flang. The current compiler has partial support for 4.5 and no support for 5.0. Hence you see commits from our side referring to 4.5. Once we are done with checks for 4.5 we will do an upgrade to 5.0. AMD and others will continue to work on 5.0. I agree that there is weirdness in this. But I anticipate quick progress on semantic checks and this will go away in a few months time. | |
883 | I think specific point might not be from the OpenMP standard. It is probably a general comment that do while loops might not have iteration variables. But the ones below are forward looking comments. |
flang/lib/Semantics/resolve-directives.cpp | ||
---|---|---|
878 | Thanks for the clarification @kiranchandramohan. Is this written somewhere in the doc? If not, it would maybe be nice to have just a line or two in the documentation just mentioning this "transition" phase. | |
883 | Ok. Just very confusing to have 3 versions of the standard on the same comment blocks. | |
897 | Are these tabs? |
flang/lib/Semantics/resolve-directives.cpp | ||
---|---|---|
883 | As Valentine mentioned, having different standards mentioned under one construct will be very confusing. It would be good to remove references to 5.0 and 5.1 here. As and when we start migrating the next OpenMP version, we can modify these appropriately. |
flang/lib/Semantics/resolve-directives.cpp | ||
---|---|---|
878 | This is pending for quite sometime. We should add OpenMP 5.0 grammar file as well. |
flang/lib/Semantics/resolve-directives.cpp | ||
---|---|---|
883 |
Yes this is correct. |
Not specially for this patch but just a quick question: What is the ultimate standard we are targeting in Flang? 4.5 or 5.0. I have seen both in new patches and since there is no way to enforce one standard or another it feel weird to mix them. Maybe I missed this discussion but if you have any information it would be great for my personal knowledge.