Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure processing conditional in cpp-directives test #6

Open
nshaffer opened this issue Oct 31, 2017 · 1 comment
Open

Failure processing conditional in cpp-directives test #6

nshaffer opened this issue Oct 31, 2017 · 1 comment
Assignees
Labels

Comments

@nshaffer
Copy link

I am using the current github version (v1.1.3) and have downloaded the exact raw of cpp-directives.F90. Attempting to pre-process it, PreForM.py seems to chokes on line 19

#if defined FIRST || defined SECOND

Full output below:

nshaffer@nshaffer-VirtualBox:~/Documents/PreForM_test$ PreForM.py cpp-directives.F90
program cpp_directives
implicit none
real:: x,y,z

print*,'Ok, "define" and "ifdef-else" work!'
print*,'Ok, "undef" and "ifdef-else" work!'

Error: conditional expression not correctly evaluated!
Original expression: defined FIRST || defined SECOND
Processed expression:  False  or   True
Defined macros
__FILE__: cpp-directives.F90
__LINE__: 19
__DATE__: Oct 30 2017
SECOND: 
__TIME__: 21:58:29
Undefined macros
FIRST

My best guess is that the expression is not getting processed recursively to True.

@szaghi
Copy link
Owner

szaghi commented Oct 31, 2017

Hi @nshaffer

thank you for reporting, I am now very busy, but ASAP I'll try to dig it deeper.

@szaghi szaghi self-assigned this Oct 31, 2017
@szaghi szaghi added the bug label Oct 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants