From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: When enumeration representation clause is too late?
Date: Mon, 18 Aug 2014 07:13:53 +0200
Date: 2014-08-18T07:13:53+02:00 [thread overview]
Message-ID: <lss22e$teg$1@dont-email.me> (raw)
In-Reply-To: <lsr7dc$k6j$1@speranza.aioe.org>
Le 17/08/2014 23:38, Victor Porton a écrit :
> When enumeration representation clause is too late and so must be
> disallowed?
>
> From compiler writer's perspective, it is clear that enumeration
> representation clause should not be after calling an enum value.
>
> But I have not found such a rule in the ARM-2012.
>
A representation clause on a type is not allowed after the type is frozen.
Freezing rules are described in 13.14. Advice: choose a good arm-chair
and grab a mug of coffee before you start reading this paragraph.
--
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00
http://www.adalog.fr
next prev parent reply other threads:[~2014-08-18 5:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-17 21:38 When enumeration representation clause is too late? Victor Porton
2014-08-18 5:13 ` J-P. Rosen [this message]
2014-08-18 16:47 ` Shark8
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox