Author Topic: Watch returns "Attempt to use a type name as an expression"  (Read 6476 times)

Offline DrCrlsn

  • Single posting newcomer
  • *
  • Posts: 3
Watch returns "Attempt to use a type name as an expression"
« on: November 07, 2016, 08:32:01 pm »
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
« Last Edit: November 07, 2016, 09:06:12 pm by DrCrlsn »

Offline DrCrlsn

  • Single posting newcomer
  • *
  • Posts: 3
Re: Watch returns "Attempt to use a type name as an expression"
« Reply #1 on: November 07, 2016, 09:29:50 pm »
I get the same result for the following bare bones F95 program.

Code
program main
integer tm
end

Offline DrCrlsn

  • Single posting newcomer
  • *
  • Posts: 3
Re: Watch returns "Attempt to use a type name as an expression"
« Reply #2 on: November 07, 2016, 09:48:11 pm »
This appears to be a problem with gdb not CB.