PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Simple test with failing program

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
Senya



Joined: 20 Jun 2011
Posts: 58

PostPosted: Tue Nov 26, 2013 9:47 am    Post subject: Simple test with failing program Reply with quote

Hello. This is simple test, i'm not sure, if it is something new for discussion.
Simple program:

program test
read(5,N)
end

It fails with segfault on windows. Is it hard for compiler to predict, that such code cannot work? Why it just lets to compile and run it?
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6119
Location: The Portland Group Inc.

PostPosted: Tue Nov 26, 2013 10:02 am    Post subject: Reply with quote

Quote:
Is it hard for compiler to predict, that such code cannot work? Why it just lets to compile and run it?
The compiler can't validate I/O formatting since it's evaluated at run time.

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group