Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Budiardja, Reuben
Fortran Frontier
Commits
51c89186
Commit
51c89186
authored
Dec 06, 2019
by
Budiardja, Reuben
Browse files
Added new test case with associate construct.
parent
502d6322
Changes
2
Hide whitespace changes
Inline
Side-by-side
Cases/Composite/Associate_DT_Component/CONSTANT_Singleton.f90
0 → 100644
View file @
51c89186
module
CONSTANT_Singleton
implicit
none
private
integer
,
public
,
parameter
::
&
KDR
=
kind
(
1.d0
)
type
,
public
::
ConstantSingleton
real
(
KDR
)
::
&
PI
=
acos
(
-1.0_KDR
),
&
SPEED_OF_LIGHT
=
2.99792458e+8_KDR
,
&
PLANCK_REDUCED
=
1.054571800e-34_KDR
end
type
ConstantSingleton
type
(
ConstantSingleton
),
public
,
parameter
::
&
CONSTANT
=
ConstantSingleton
(
)
end
module
CONSTANT_Singleton
program
TestValue
use
CONSTANT_Singleton
implicit
none
associate
(
Pi
=>
CONSTANT
%
PI
)
print
*
,
'Pi = '
,
Pi
end
associate
end
program
TestValue
Cases/Composite/Associate_DT_Component/README
0 → 100644
View file @
51c89186
Some compiler failed to produce the correct value when associate construct is
used with member of derived type declared as module variable.
This test problem reproduce this issue with such compiler when optimization
was used.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment