[Bug fortran/27613] compile fails with "Unclassifiable statement" error message
theresa dot adelt at greselius dot net
gcc-bugzilla@gcc.gnu.org
Tue May 19 15:45:00 GMT 2009
------- Comment #11 from theresa dot adelt at greselius dot net 2009-05-19 15:45 -------
Hello!
I need help, too.
I want to compile with g95 the following easy program:
program prim
! Testet, ob eine gegebene Zahl prim
integer :: kandidat, teiler, rest
kandidat = 7099
do teiler = 2, kandidat - 1
rest = MOD(kandidat, teiler)
if (rest == 0) THEN
write(*,*)kandidat, ' ist nicht Teiler'
teiler, 'ist ein Teiler'
stop
end if
end do
write(*,*)kandidat, 'ist prim.'
stop
end program prim
It is about testing if a number is a prime number or not.
The following error appeared:
In file prim.f:9
teiler, 'ist ein Teiler'
1
Error: Unclassifiable statement at (1)
What is wrong? Why is 'teiler' not classifiable, even though I write teiler=2?
I would be happy, if anybody could help me.
Thanks a lot.
Wishes from Germany.
Theresa
--
theresa dot adelt at greselius dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |theresa dot adelt at
| |greselius dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27613
More information about the Gcc-bugs
mailing list