flang-compiler / f18

F18 is a front-end for Fortran intended to replace the existing front-end in the Flang compiler
229 stars 48 forks source link

Semantic check for C708 #981

Closed psteinfeld closed 4 years ago

psteinfeld commented 4 years ago

An entity declared with the CLASS keyword shall be a dummy argument or have the ALLOCATABLE or POINTER attribute.

psteinfeld commented 4 years ago

Could this constraint be enforced in check-declarations.cc rather than in name resolution? If so, that's probably a better place for it.

Quite possibly. I'll take a look.

psteinfeld commented 4 years ago

Could this constraint be enforced in check-declarations.cc rather than in name resolution? If so, that's probably a better place for it.

Quite possibly. I'll take a look.

As suggested, I've moved the check to check-declarations.cpp.

@klausler, can you please take another look?