------- Comment #1 from dfranke at gcc dot gnu dot org  2009-12-13 16:19 -------
F2008 allows C_SIZEOF in initialization expressions:
The definition for "specification inquiry" is in Fortran 2008 (7.1.11
Specification expression):
"A specication inquiry is a reference to
(1) an intrinsic inquiry function,
[...]
(4) the function C_SIZEOF from the intrinsic module ISO C BINDING (15.2.3.7)"

Currently C_SIZEOF is rejected as init expression as it is not listed as valid
inquiry function, neither is CLASS_INQUIRY in intrinsic.c(add_functions) set.


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dfranke at gcc dot gnu dot
                   |                            |org
OtherBugsDependingO|                            |29962, 39627
              nThis|                            |
            Summary|F2008: C_SIZEOF is in the   |F2008: C_SIZEOF is in the
                   |wrong scope                 |wrong scope, rejected as
                   |                            |initialization expression


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40568

Reply via email to