Code::Blocks Forums

User forums => Help => Topic started by: DrCrlsn on November 07, 2016, 08:32:01 pm

Title: Watch returns "Attempt to use a type name as an expression"
Post by: DrCrlsn 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
Title: Re: Watch returns "Attempt to use a type name as an expression"
Post by: DrCrlsn 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
Title: Re: Watch returns "Attempt to use a type name as an expression"
Post by: DrCrlsn on November 07, 2016, 09:48:11 pm
This appears to be a problem with gdb not CB.