User forums > Help

Watch returns "Attempt to use a type name as an expression"

(1/1)

DrCrlsn:
A watch created for variable tm when debugging the Fortran77 code below returns "Attempt to use a type name as an expression." See attached screenshot.  I am running CB 16.01, gdb 7.11.1, and gfortran 5.4.0 under ubuntu 16.04.

I would appreciate anyone else testing for this error.  If confirmed, I will submit bug report.

Thanks.


--- Code: ---      program main
      real tm
      tm = 1
      stop
      end

--- End code ---

DrCrlsn:
I get the same result for the following bare bones F95 program.


--- Code: ---program main
integer tm
end

--- End code ---

DrCrlsn:
This appears to be a problem with gdb not CB.

Navigation

[0] Message Index

Go to full version