I have this function
logical function IsDelimiter(c) result(res)
implicit none
character, intent(in):: c
res = c == ' ' &
.or. c == ',' &
.or. c == '(' &
.or. c == ')' &
.or. c == '[' &
.or. c == ']' &
.or. c == '{' &
.or. c == '}' &
.or. c == '''' &
.or. c == '"' &
.or. c == ';' &
.or. c == ':'
end function IsDelimiter
Using ifort it compiles fine. Using CB I have errors:
||=== Build: Debug in Project (compiler: GNU Fortran Compiler) ===|
D:\TEMP\TRUNK-MINGW\ALL_CB\String.for|467|Error: Unclassifiable statement |
D:\TEMP\TRUNK-MINGW\ALL_CB\String.for|468|Error: Invalid character in name |
D:\TEMP\TRUNK-MINGW\ALL_CB\String.for|469|Error: Invalid character in name |
D:\TEMP\TRUNK-MINGW\ALL_CB\String.for|470|Error: Invalid character in name |
D:\TEMP\TRUNK-MINGW\ALL_CB\String.for|471|Error: Invalid character in name |
D:\TEMP\TRUNK-MINGW\ALL_CB\String.for|472|Error: Invalid character in name |
D:\TEMP\TRUNK-MINGW\ALL_CB\String.for|473|Error: Invalid character in name |
D:\TEMP\TRUNK-MINGW\ALL_CB\String.for|474|Error: Invalid character in name |
D:\TEMP\TRUNK-MINGW\ALL_CB\String.for|475|Error: Invalid character in name |
D:\TEMP\TRUNK-MINGW\ALL_CB\String.for|476|Error: Invalid character in name |
D:\TEMP\TRUNK-MINGW\ALL_CB\String.for|477|Error: Invalid character in name |
D:\TEMP\TRUNK-MINGW\ALL_CB\String.for|478|Error: Invalid character in name |
||=== Build failed: 12 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
How can I get this to compile with no errors? I don't want to change the code since I have dozens of other files that use the same syntax. Is there an additional build option or something I can use to make this go away?
Thanks