------- Comment #5 from pault at gcc dot gnu dot org  2008-09-17 08:55 -------
(In reply to comment #4)
> 4.3.2 is released, changing milestones to 4.3.3.
> 
Although this passes Lahey with only a warning that the return value is not
set, it manifestly is standard defying according to 7.1.6.2

A variable in a specification expression shall have its type and type
parameters, if any, specified by a previous declaration in the same scoping
unit, or by the implicit typing rules in effect for the scoping unit, or by
host or use association. If a variable in a specification expression is typed
by
the implicit typing rules, its appearance in any subsequent type declaration
statement shall confirm the implied type and type parameters.

Inverting the order of the declarations should make the code legal.

Paul 


-- 


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

Reply via email to