This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/27613] compile fails with "Unclassifiable statement" error message
- From: "theresa dot adelt at greselius dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 May 2009 15:45:15 -0000
- Subject: [Bug fortran/27613] compile fails with "Unclassifiable statement" error message
- References: <bug-27613-12687@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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