Consider the following program.
PROGRAM  test
  real(kind =4) :: a
  real(kind =8) :: b
  a = 1
  b = 2
  print *, a
  print *, b
END PROGRAM test
When compiled with flang and debugged in the GDB, the type of both a and b are same.
(gdb) ptype a
type = real
(gdb) ptype b
type = real
When similar code is compiled with gfortran, it shows the following in the GDB.
(gdb) ptype a
type = real(kind=4)
(gdb) ptype b
type = real(kind=8)