mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 09:36:36 +00:00

Add a builtin type for c_devptr since it will need some special handling for some function like c_f_pointer. `c_ptr` is defined as a builtin type and was raising a semantic error if you try to use it in a I/O statement. This patch add a check for c_ptr and c_devptr to bypass the semantic check and allow the variables of these types to be used in I/O. This version of the patch keeps the semantic error when -pedantic is enabled to align with gfortran.